[Gtk-sharp-list] mono and .net runtime discrepancy
Mon, 14 Feb 2005 08:38:41 -0500 (EST)
Hello all. I have been able to compile my gtk-sharp app on both mono and .net on
win32. However, I can only execute it with mono. When I execute it on .net,
either debugging within visual studio or from the shell, i get an exception
(The type initializer for "Gui.EasyTreeview" threw an exception.) from the
constructor of a subclassed treeview. My subclass is as follows:
public class EasyTreeview:Gtk.TreeView
private static GLib.GType TreeType;
Fails here ===> TreeType=RegisterGType(typeof(EasyTreeview));
public EasyTreeview(int IntColumnsPar, string StringColumnsPar):base(TreeType)
//.... my init stuff goes here ...
Thanks for your help.