[MonoDevelop] windows 7 x64 and gtk# app

James P Michels III james.p.michels at gmail.com
Mon Oct 5 13:50:56 EDT 2009


Your trying to load 32bit assemblies into a 64bit app.

You can change your app to force an x86 platform target as a workaround.

I don't believe there are 64bit GTK# assemblies for windows yet.

Sharique uddin Ahmed Farooqui wrote:
> Hi,
>
> I'm using windows7 64bit. I have installed Monodevelop 2.2beta1. When
> try to run/debug a GTK# appplication, it gives following exception.
>
> System.TypeInitializationException was unhandled
>   Message="The type initializer for 'Gtk.Application' threw an exception."
>   Source="gtk-sharp"
>   TypeName="Gtk.Application"
>   StackTrace:
>        at Gtk.Application.Init()
>        at ColorManager.MainClass.Main(String[] args) in
> f:\Sharique\Projects\ColorManager\ColorManager\Main.cs:line 10
>        at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
>        at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
>        at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state)
>        at System.Threading.ThreadHelper.ThreadStart()
>   InnerException: System.BadImageFormatException
>        Message="An attempt was made to load a program with an
> incorrect format. (Exception from HRESULT: 0x8007000B)"
>        Source="glib-sharp"
>        StackTrace:
>             at GLib.Thread.glibsharp_g_thread_supported()
>             at GLib.Thread.get_Supported()
>             at Gtk.Application..cctor()
>        InnerException:
>
>   


More information about the Monodevelop-list mailing list