I'm trying the latest GTK# SDK and runtime for .NET (version 2.8.3). One of the first things I did notice is that GTK# and Gnome# assemblies are compiled to run with the .NET Framework 1.1, and not with 2.0
That may be the cause for some strange errors I get trying to run an application (GnomeSubtitles 0.1) recompiled to use GET# for .NET and .NET Framework 2.0 For instance, I get an AccessViolationException when calling the Glade.XML.Autoconnect() method Exception Message is "Tentativo di lettura o scrittura della memoria protetta. Spesso questa condizione indica che altre parti della memoria sono danneggiate." (translated from Italian, it means "Memory writing or reading attempt of protected memory. Often this condition means that other memory areas are damaged") StackTrace is in Glade.XML.SignalConnector.glade_xml_signal_autoconnect_full(IntPtr raw, RawXMLConnectFunc func, IntPtr user_data)\r\n in Glade.XML.SignalConnector.Autoconnect()\r\n in Glade.XML.Autoconnect(Object handler)\r\n in GnomeSubtitles.GUI..ctor(EventHandlers handlers, XML& glade) in E:\\Projects\\Visual Studio 2005\\GnomeSubtitles\\GnomeSubtitles\\src\\GnomeSubtitles\\Core\\GUI.cs:riga 42\r\n in GnomeSubtitles.Global.Init() in E:\\Projects\\Visual Studio 2005\\GnomeSubtitles\\GnomeSubtitles\\src\\GnomeSubtitles\\Core\\Global.cs:riga 128\r\n in GnomeSubtitles.Global.Run() in E:\\Projects\\Visual Studio 2005\\GnomeSubtitles\\GnomeSubtitles\\src\\GnomeSubtitles\\Core\\Global.cs:riga 89 If I compile the code with gmcs instead (using the latest Mono installer and GTK# bindings for mono , with the exception of gnome-sharp 2.0 which i take from the GTK# for .NET installer since it is not shipped with Mono), the app runs fine, but crashes on dialogs closing (for example, when I press an OpenDialog Cancel button): Stacktrace: at (wrapper managed-to-native) Gtk.Object.gtk_object_destroy (intptr) <0x00004> at (wrapper managed-to-native) Gtk.Object.gtk_object_destroy (intptr) <0xffffffff> at Gtk.Object.Destroy () <0x00017> at Gtk.Widget.Destroy () <0x0000d> at GnomeSubtitles.GladeDialog.CloseDialog () <0x0000e> at GnomeSubtitles.OpenDialog.OnResponse (object,Gtk.ResponseArgs) <0x000ae> at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_ResponseArgs (o bject,Gtk.ResponseArgs) <0xffffffff> at Gtk.Dialog.ResponseSignalCallback (intptr,int,intptr) <0x000e1> at (wrapper native-to-managed) Gtk.Dialog.ResponseSignalCallback (intptr,int,intptr) <0x ffffffff> at (wrapper managed-to-native) Gtk.Dialog.gtk_dialog_run (intptr) <0x00004> at (wrapper managed-to-native) Gtk.Dialog.gtk_dialog_run (intptr) <0xffffffff> at Gtk.Dialog.Run () <0x00018> at GnomeSubtitles.GladeDialog.WaitForResponse () <0x00013> at GnomeSubtitles.GUI.Open () <0x0004d> at GnomeSubtitles.EventHandlers.OnOpen (object,System.EventArgs) <0x00015> at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_EventArgs (obje ct,System.EventArgs) <0xffffffff> at GLib.Signal.voidObjectCallback (intptr,intptr) <0x00093> at (wrapper native-to-managed) GLib.Signal.voidObjectCallback (intptr,intptr) <0xfffffff f> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004> at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff> at Gtk.Application.Run () <0x00007> at Gnome.Program.Run () <0x00007> at GnomeSubtitles.Global.Run () <0x0007c> at GnomeSubtitles.Executable.Main (string[]) <0x0001e> at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,in tptr,intptr) <0xffffffff> This application has requested the Runtime to terminate it in an unusual way. _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
