Bug 7826 - Must call dbus_g_bus_get() before any dbus_g_object_register_marshaller()
Summary: Must call dbus_g_bus_get() before any dbus_g_object_register_marshaller()
Status: RESOLVED DUPLICATE of bug 3999
Alias: None
Product: dbus
Classification: Unclassified
Component: GLib (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high normal
Assignee: Robert McQueen
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-09 14:32 UTC by Daniel d'Andrada Tenório de Carvalho
Modified: 2006-10-25 13:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Daniel d'Andrada Tenório de Carvalho 2006-08-09 14:32:57 UTC
All dbus_g_object_register_marshaller() calls made before the first
dbus_g_bus_get() call will generate debug warnings and won't work properly
(i.e., some marshallers won't be found).

Looks like some stuff needed by dbus_g_object_register_marshaller() function
only gets initialized/set when you call dbus_g_bus_get(), which is obviously a
wrong behaviour.
Comment 1 John (J5) Palmieri 2006-08-09 15:11:36 UTC
This is because dbus_g_bus_get() initalized the D-Bus GLib's special types. 
Solution would be to add a dbus_g_init function that does the init.
Comment 2 Rob Taylor 2006-10-25 13:15:56 UTC

*** This bug has been marked as a duplicate of 3999 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.