[Gtk-sharp-list] Gtk# with .NET (on 64bit Windows)

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Dec 3 15:17:15 EST 2009

On Thu, Dec 3, 2009 at 8:40 AM, Martin Brodbeck
<martin at brodbeck-online.de> 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

More information about the Gtk-sharp-list mailing list