Reputation: 96884
I am having an issue with DBus:
Everything works OK. Now, if I insert:
1a. dbus_bus_get_unique_name()
I get a nasty exception message:
arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "(error) == NULL || !dbus_error_is_set ((error))" failed in file dbus-connection.c line 3301.
Help please.
Upvotes: 0
Views: 773
Reputation: 96884
After some experimentation, it seems that the function dbus_bus_get_unique_name() must be called from within a specific context. I managed to get a meaningful result when accessing this function through a filter callback function e.g. one registered with dbus_add_filter function.
Upvotes: 1