On Thu, Dec 3, 2009 at 8:40 AM, Martin Brodbeck <[email protected]> wrote: > Hello all, > > I have another newbie question. I tried to get my small Gtk#-application run > on Windows 7 (64bit). So I installed the current "Gtk# for .NET" on my windows > machine. But the application immediately crashes with a > System.TypeInitializationException. > > Is this a known bug or is it because Gtk# for .NET is 32bit (whatever that > means)? Is someone working on this problem or should it just run fine and I > did > something wrong?
Yes, the Windows version of GTK# (and the bundled GTK+) are currently only 32-bit, so they can't be used from a 64-bit .NET VM. You should flag your exe as 32-bit using /platform:x86 which will make Windows load it in a 32-bit VM. -- Michael Hutchinson http://mjhutchinson.com _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
