[Gtk-sharp-list] TypeInitializationException with Gtk# 2.12.10 on Windows Vista

Zach Bean zb at forty2.com
Thu Jul 15 23:16:04 EDT 2010

Hi all,

I'm building a Gtk# application that I'm hoping I'll be able to use on both
Windows and Linux.  Up till recently, I've been using Linux / MonoDevelop
exclusively, but I've now gotten it into my head that I'd like to see it
running on Windows as well.

I've installed the Gtk# runtime, version 2.12.10, but when I try running my
app, it exits immediately.  Debugging with Visual Studio Express 2008 shows
that it's a "System.TypeInitializationException" being thrown on
Gtk.Application.Init.  Apparently the cause was a DllNotFoundException
complaining about not being able to load libgthread-2.0-0.dll ({"Unable to
load DLL 'libgthread-2.0-0.dll': The specified procedure could not be found.
(Exception from HRESULT: 0x8007007F)"}).

I see the same issue on Windows 7, but not on Windows XP.

I've confirmed that c:\Program Files\GtkSharp\2.12\bin is in my Path, and
I've rebooted a couple of times.  I've even tried installing an older
version of Gtk# (not too much older, though -- 2.12.9) to no avail.  I also
couldn't turn up anything by Googling.

Does anyone out there have any other ideas I could try to get this working? 
I have to confess that Windows is not my area of expertise, so I've pretty
much exhausted my list of things to try.

Much appreciated,
Zach Bean
View this message in context: http://mono.1490590.n4.nabble.com/TypeInitializationException-with-Gtk-2-12-10-on-Windows-Vista-tp2290903p2290903.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list