[Gtk-sharp-list] TypeInitializationException with Gtk# 2.12.10 on Windows Vista
Ulrich
ulrich.b at gmx.at
Sun Jul 18 16:56:57 EDT 2010
On 16.07.2010 05:16, Zach Bean wrote:
> 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)"}).
It seems that GtkSharp CAN find the Native DLL, but then it has some
problems loading it (maybe because of a version miss match).
To find out which GTK DLLs your program loads you could either use
Process Explorer or just open a CMD.exe and type in the DLL name:
"libgthread-2.0-0.dll" (without quotes). After this, there comes an
error message with the DLL path in the window title. Please post this path.
--
Lg Ulrich Buchgraber
More information about the Gtk-sharp-list
mailing list