[Mono-list] class.c assertion using DBus from mono
Sergio Rubio
sergio.rubio@hispalinux.es
Thu, 21 Oct 2004 16:15:37 +0200
This is a multi-part message in MIME format.
--------------030004000901040003040002
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi, I'm trying to use dbus from mono and I'm getting this assert:
** ERROR **: file class.c: line 1178 (mono_class_setup_vtable):
assertion failed: (decl->slot != -1)
aborting...
This is not the first time I use DBus from mono and I have other mono
DBus enabled applications working. Attached is a snippet of the code I'm
using.
If I comment the service.GetObject method call I don't get this assert.
I'haven't seen anything in bugzilla/google related to this.
Should I fill a bug report? Am I doing something wrong?
Ubuntu Linux.
ibook G3 700.
mono from cvs HEAD stable.
Cheers,
Rubio
--------------030004000901040003040002
Content-Type: text/x-csharp;
name="Client.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Client.cs"
namespace Foo
{
using System;
using DBus;
public class Client
{
public static void Main(string [] args)
{
Connection connection = Bus.GetSessionBus();
Service service = Service.Get(connection, "org.rubiojr.MonkeyPop");
NotificationDaemon daemon = (NotificationDaemon)
service.GetObject(typeof(NotificationDaemon), "/org/rubiojr/MonkeyPop/NotificationDaemon");
}
}
}
--------------030004000901040003040002--