[Gtk-sharp-list] SubWidget problems

Sergio Duran Sergio Duran <sergioduran@gmail.com>
Tue, 14 Dec 2004 19:41:08 -0600


I created a Widget (DBMenu) that inherits from Gtk.Menu, it works ok,
but sometimes it ends up reading an empty instance of itself, I set
some variables in the ctor, and I end up dealing with an instance with
those variables unitialized, I found some stuff that said one should
add a ctor(IntPtr x) but then it instantiates the class when it
shouldnt be doing it, apparently randomly so get some weird crashes.

I found some links that said that it is related to gtk and c#'s
garbage collection.

Should I avoid creating classes that inherit Gtk Objects?