[Gtk-sharp-list] mono gtk# vs .net gtk#
Miguel de Icaza
12 Apr 2003 14:30:52 -0400
> I have managed to compile and run a small gtk# app with a button under
> mono running on mandrake 9.1. I also compiled and ran the same app on
> windows 2000 using the .NET runtime (no mono nor cygwin).
> The app has a button which outputs to the console the text in its label
> when clicked (Code attached). The code runs flawlessly under linux,
> however, I have some problems when running under win2000. (See output
> attached). Something seems to happen to the button object, once it is
> clicked on the first time. Also, whenever the Application.Quit()
I can only offer a hint. It seems like the underlying Gtk object is
being collected. You might want to try adding a WriteLine in
glib/Object.cs, where the objects are unreferenced, and track whether
your label is being destroyed. If so, print out the stack trace for it.
> (<unknown>:1164): GLib-GObject-CRITICAL **: file gobject.c: line 1307
> (g_object_unref): assertion `G_IS_OBJECT (object)' failed
Sounds like another object got unreferenced behind our backs.