[Gtk-sharp-list] Exception on closing a window.

Christian Hoff christian_hoff at gmx.net
Wed Jun 17 07:37:18 EDT 2009


libin wrote:
>
> *These are the warnings shown in the output console*
>
> **
>
>  
>
> *Now this exception seems the problem because the exception thrown 
> while crashing comes from  glib-sharp.dll*
>
> ** 
>
> **(Project.exe:3364): GLib-GObject-CRITICAL **: g_type_free_instance: 
> assertion `instance != NULL && instance->g_class != NULL' failed
>
> Exception while disposing a Project.ModuleWindow in Gtk#
>
> A first chance exception of type 'System.AccessViolationException' 
> occurred in glib-sharp.dll
>
> The program '[3364] Project.exe: Managed' has exited with code 0 (0x0).
>
I have no idea what is really going on here, but it seems like an object 
is disposed by your code before Gtk# tries to do that.

Set the environment variable "GTK_SHARP_DEBUG" to some value before you 
run your program from the console. You should get a stack trace of the 
GLib-Critical then. Post the stack trace to the list or file a bug 
report with a small test case.
>
>  
>
> *Application crashes with this message.*
>
> >
>
> > Message: "*Attempted to read or write protected memory. This is often
>
> > an indication that other memory is corrupt." *
>
> > **
>
> > Source: *glib-sharp*
>
> >
>
> > Stack Trace:
>
> >
>
> > * at GLib.Object.PerformQueuedUnrefs()
>
> > at GLib.Timeout.TimeoutProxy.Handler()
>
> > at Gtk.Application.gtk_main()
>
> > at Gtk.Application.Run()
>
> > at LmEdit.LmEdit.Main() in D:\Lm_Edit\src\common\LmEdit.cs:line 49*
>
> > **
>
> > Any help would be highly appreciated.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>   



More information about the Gtk-sharp-list mailing list