[Mono-dev] DBus# - Usage of BusDriver
Michael Gebhart
lists at miketech.net
Sat Feb 11 07:47:57 EST 2006
Hi,
I am trying to do some stuff with dbus#. I wanna call ListNames of
org.freedesktop.DBus.
In the DBus binding I found the BusDriver interface with the abstract
DBus method ListNames.
And there is also a static method New:
---------------
static public BusDriver New (Connection connection)
{
Service service;
service = Service.Get (connection, "org.freedesktop.DBus");
BusDriver driver;
driver = (BusDriver) service.GetObject (typeof (BusDriver),
"/org/freedesktop/DBus");
return driver;
}
---------------
So I tried to use BusDriver.New:
---------------
Connection dbusConnection;
dbusConnection = Bus.GetSessionBus ();
BusDriver driver = BusDriver.New(dbusConnection);
---------------
But when I try to run this program I get this:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Stacktrace:
in <0x4> (wrapper managed-to-native)
System.Threading.Monitor:Monitor_try_enter (object,int)
in <0xffffffb3> (wrapper managed-to-native)
System.Threading.Monitor:Monitor_try_enter (object,int)
in [0x13] System.Threading.Monitor:Enter (object)
in <0xffffffe5> (wrapper synchronized) DBus.Service:remove_SignalCalled
(DBus.Service/SignalCalledHandler)
in <0x15> DBus.BusDriver.Proxy:Finalize ()
in <0x50e92e2f> (wrapper runtime-invoke)
System.Object:runtime_invoke_void (object,intptr,intptr,intptr)
Native stacktrace:
mono(mono_handle_native_sigsegv+0xc0) [0x81467c0]
mono [0x8132ba6]
[0xffffe440]
mono [0x80e4b75]
[0xb7af0371]
[0xb7af02fc]
[0xb729fcfc]
[0xb729fcce]
[0xb729fc49]
mono [0x8132a50]
mono(mono_runtime_invoke+0x27) [0x80ce4a7]
mono [0x8147e83]
mono [0x8148b74]
mono [0x8148c73]
mono [0x80ab341]
mono [0x80ff880]
mono [0x810d864]
/lib/tls/libpthread.so.0 [0xb7ea0c4b]
/lib/tls/libc.so.6(__clone+0x5e) [0xb7e0a9ee]
Any idea, what I did wrong?
(mono-1.1.13, dbus-0.60)
Greetings
Mike
More information about the Mono-devel-list
mailing list