A bit of a warning to those who use D-Bus and GNOME-VFS in the same app. Since GNOME-VFS uses threads and has now switched to using D-Bus it is prudent to initalize threading as early as possible to avoid D-Bus threading being intialized after a connection is established. If such a thing should happen asserts would cause the application to crash as the already created connection would have a dummy mutex while the global mutex lock would be a glib mutex. Initalizing threading early using dbus_g_threads_init() (or dbus.glib.threads_init() in python) avoids this issue by making sure the global mutex is set before any connection is created no matter what your libraries do.[read this post in: ar de es fr it ja ko pt ru zh-CN ]
August 4, 2006
Sorry, the comment form is closed at this time.