[Gtk-sharp-list] Gtk# on the .NET Framework

Stifu stifu at free.fr
Tue Nov 3 16:45:30 EST 2009


Hello,

It should work. There is an 8 MB install for Windows, which is available
here:
http://ftp.novell.com/pub/mono/gtk-sharp/gtk-sharp-2.12.9-2.win32.msi


no.human.being wrote:
> 
> Hello Mono community.
> 
> Just wanted to get into Gtk#, since it looks so much better than SWF and
> feels much more mature and standard-compliant.
> 
> However I could not get it to run on the .NET Framework. I use Visual
> Studio 2008 to compile my binaries and use Gtk# from C#. The .NET Compiler
> compiles flawlessly and I can run the resulting executable using the Mono
> runtime (tested on version 2.4.2.3). However, the compiled .NET assembly
> does not execute on the .NET CLR. Even the following simple code is not
> running on .NET. When run in "debug" mode, it throws a
> "System.TypeInitializationException" when the Init() method of Gtk is
> called. When run in "release" mode, the .NET CLR crashes hard with a
> protection fault.
> 
> class Test
> {
>    static void Main(string[] args)
>    {
>       Gtk.Application.Init();
>    }
> }
> 
> What am I doing wrong? Is Gtk# even supposed to work on .NET or is it
> Mono-specific? The .NET binding as well as Gtk+ itself are installed on
> the system and working with the Mono runtime. Operating system is Vista
> x64.
> 
> Thanks.
> 
> 

-- 
View this message in context: http://old.nabble.com/Gtk--on-the-.NET-Framework-tp26163595p26163600.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list