Hi, there!

> Can you ensure that you set the assembly to be 32bit only. The odds
> are you are starting a 64bit process and the Gtk binaries can only be
> loaded in a 32bit process.

        Right, but, how can I ensure that?

        In fact, I have checked the solution I found on the morning (thanks to 
Ian), and this has solved the problems in my projects, except two of them. The 
older ones, by the way (I've been using MonoDevelop in Windows and Linux, over 
the very same sources, thanks to Dropbox).

        For example, let's take Colorado:

        http://baltasarq.info/dev/colorado/

        If I execute that application in Windows, with the .NET framework, it 
won't run. It will only run from Mono. From MonoDevelop, I can execute the 
application from both runtimes. Again, using mono executes the applications 
without problems, but when selecting the .NET framework:

==
Unhandled Exception: System.TypeInitializationException: The type initializer 
for 'Gtk.Application' threw an exception. ---> System.BadImageFormatException: 
Se ha intentado cargar un programa con un formato incorrecto. (Exception from 
HRESULT: 0x8007000B)
   at GLib.Thread.glibsharp_g_thread_supported()
   at GLib.Thread.get_Supported()
   at Gtk.Application..cctor()
   --- End of inner exception stack trace ---
   at Gtk.Application.Init()
   at DiaryGui.Ppal.Main(String[] args)
La aplicación terminó con el código: -532462766
==

It seems that while Gtk is initializing, through Application.Init(), I suppose, 
it detects that the DLL's are corrupted or something... while other projects 
now run happily on .NET 4!

Any possibility you can reckon?
Thanks,

-- 
baltasarq <[email protected]>
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to