|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Strange Exception Raised by Gtk.UIManager.GetWidget (string)Hi folks,
I've recently encountered some very strange exception being raised when launching my Gtk# app (made with MonoDevelop 1.0) on Mono 2.2 / WinVista Home Premium. See this stack trace: Z:\Projects\iwawi>C:\Programme\Mono-2.2\bin\mono Z:\Projects\iwawi\iwawi\bin\Debug\iwawi.exe Stacktrace: at (wrapper managed-to-native) Gtk.UIManager.gtk_ui_manager_get_widget (intptr ,intptr) <0x00004> at (wrapper managed-to-native) Gtk.UIManager.gtk_ui_manager_get_widget (intptr ,intptr) <0xffffffff> at Gtk.UIManager.GetWidget (string) <0x00032> at iwawi.ApplicationBaseWindow.Build () <0x02440> at iwawi.ApplicationBaseWindow..ctor (string,iwawi.DBConnectionHandler) <0x001 3c> at MainWindow.OnLoginButtonPressedEvent (object,System.EventArgs) <0x00449> at (wrapper runtime-invoke) MainWindow.runtime_invoke_void__this___object_obje ct (object,intptr,intptr,intptr) <0xffffffff> at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (ob ject,object[],System.Exception&) <0x00004> at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (ob ject,object[],System.Exception&) <0xffffffff> at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags, System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0009e> at System.Reflection.MethodBase.Invoke (object,object[]) <0x00022> at System.Delegate.DynamicInvokeImpl (object[]) <0x0018a> at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x00034> at System.Delegate.DynamicInvoke (object[]) <0x00016> at GLib.Signal.ClosureInvokedCB (object,GLib.ClosureInvokedArgs) <0x0014b> at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs) <0x00024> at GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr ) <0x00209> at (wrapper native-to-managed) GLib.SignalClosure.MarshalCallback (intptr,intp tr,uint,intptr,intptr,intptr) <0xffffffff> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> at Gtk.Application.Run () <0x0000a> at iwawi.MainClass.Main (string[]) <0x0044c> at (wrapper runtime-invoke) iwawi.MainClass.runtime_invoke_void_object (object ,intptr,intptr,intptr) <0xffffffff> This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. And this is the questionaly code generated by MonoDevelop:
Gtk.UIManager w1 = new Gtk.UIManager();
[...]
w1.AddUiFromString("some menu item XML code goes here...");
this.menuBar = ((Gtk.MenuBar)(w1.GetWidget("/menuBar")));
The really strange thing is: On Linux (openSuSE 11.1; x86_64; Mono 2.0.1) everythng works seamlessly.
Any useful hints are apppreciated. Good night! J.R. |
|
|
Re: Strange Exception Raised by Gtk.UIManager.GetWidget (string)OK, I updated to Mono 2.2-1.1 on the Linux side (where I also do the development work). No use. :-(
J.R. |
|
|
Re: Strange Exception Raised by Gtk.UIManager.GetWidget (string)Am Sonntag 08 März 2009 16:53:12 schrieb Jacek R.:
> OK, I updated to Mono 2.2-1.1 on the Linux side (where I also do the > development work). No use. :-( > > J.R. > OK, made another update: jacek@veteran:~> gacutil -l gtk-sharp The following assemblies are installed into the GAC: gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f Number of items = 1 jacek@veteran:~> rpm -q mono-complete mono-complete-2.4-16.1 The error remains. ;-((((( This is the original error message: Z:\Projects\iwawi>C:\Programme\Mono-2.2\bin\mono Z: \Projects\iwawi\iwawi\bin\Debug\iwawi.exe Stacktrace: at (wrapper managed-to-native) Gtk.UIManager.gtk_ui_manager_get_widget (intptr ,intptr) <0x00004> at (wrapper managed-to-native) Gtk.UIManager.gtk_ui_manager_get_widget (intptr ,intptr) <0xffffffff> at Gtk.UIManager.GetWidget (string) <0x00032> at iwawi.ApplicationBaseWindow.Build () <0x02440> at iwawi.ApplicationBaseWindow..ctor (string,iwawi.DBConnectionHandler) <0x001 3c> at MainWindow.OnLoginButtonPressedEvent (object,System.EventArgs) <0x00449> at (wrapper runtime-invoke) MainWindow.runtime_invoke_void__this___object_obje ct (object,intptr,intptr,intptr) <0xffffffff> at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (ob ject,object[],System.Exception&) <0x00004> at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (ob ject,object[],System.Exception&) <0xffffffff> at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags, System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0009e> at System.Reflection.MethodBase.Invoke (object,object[]) <0x00022> at System.Delegate.DynamicInvokeImpl (object[]) <0x0018a> at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x00034> at System.Delegate.DynamicInvoke (object[]) <0x00016> at GLib.Signal.ClosureInvokedCB (object,GLib.ClosureInvokedArgs) <0x0014b> at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs) <0x00024> at GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr ) <0x00209> at (wrapper native-to-managed) GLib.SignalClosure.MarshalCallback (intptr,intp tr,uint,intptr,intptr,intptr) <0xffffffff> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> at Gtk.Application.Run () <0x0000a> at iwawi.MainClass.Main (string[]) <0x0044c> at (wrapper runtime-invoke) iwawi.MainClass.runtime_invoke_void_object (object ,intptr,intptr,intptr) <0xffffffff> This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Now I am speculating...but is it possible that the bug (if you can call it so) lies in GTK for Windows, and not in the Gtk# libs? Regards Jacek ---------------------------------------------------------------------- Szukasz pracy? Sprawd¼ nasze oferty! http://link.interia.pl/f22b8 _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@... http://lists.ximian.com/mailman/listinfo/gtk-sharp-list |
| Free embeddable forum powered by Nabble | Forum Help |