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

David Cantin dcantin at gmail.com
Fri Jul 16 10:56:58 EDT 2010


Any chance you have the gtk+ runtime installed on your xp computer and not
on your vista or seven one. Because the new gtk-sharp installer (2.12.10)
have stop shipping the native gtk+ dll.

You can find gtk+ installer here
http://gtk-win.sourceforge.net/home/index.php/en/Downloads


David

2010/7/15 Zach Bean <zb at forty2.com>

>
> 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.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20100716/5bc600dc/attachment-0001.html 


More information about the Gtk-sharp-list mailing list