GNOME Bugzilla – Bug 586636
Message.Src throws an exception
Last modified: 2009-06-23 05:01:42 UTC
When asking for the Message.Src in a MessageCallback function for the BusWatch, there is an exception thrown. System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> System.ArgumentException: cname is not in NamespaceType format. GType.Register should be called directly for ffdec_cinepak bij GLib.GType.GetQualifiedName(String cname) bij GLib.GType.LookupType(IntPtr typeid) bij GLib.ObjectManager.GetTypeOrParent(IntPtr obj) bij GLib.ObjectManager.CreateObject(IntPtr raw) bij GLib.Object.GetObject(IntPtr o, Boolean owned_ref) bij GLib.Object.GetObject(IntPtr o) bij Gst.Message.get_Src() in d:\MKB\branches\gstreamer-sharp\gstreamer-sharp\gstreamer-sharp\generated\Message.custom:regel 39 Of course I can Handle the exception in my application, but I have the feeling Message.Src should only fail by returning null, but not throwing an exception. I'm not shure whether gstreamer#, glib# or the ffdec_cinepak element should be fixed.
This should be fixed in glib#... it should simply ignore GType names not in "namespace" format, check if it is a registered type or go to the parent type (and skip the automatic type registration stuff). Could you forward it there and paste the bug URL here? I'll create a patch for it then tomorrow...
https://bugzilla.novell.com/show_bug.cgi?id=515453