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.
--
View this message in context:
http://www.nabble.com/Strange-Exception-Raised-by-Gtk.UIManager.GetWidget-%28string%29-tp21612063p21612063.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list