[Gtk-sharp-list] Gtk# instability nightmares

Aaron Oxford aaron at hardwarehookups.com.au
Wed Apr 4 09:01:11 EDT 2007

Eric, this seems to have had a major impact on stability although of 
course further testing will be needed to tell whether it is 100% 
solid. Dude if this solves my issues I'll nominate you for God. :-D

Only one small problem - the app now fails to exit when the window is 
closed... :-p


At 08:42 PM 3/04/2007, Eric Albright wrote:
>We too experienced instability problems with Gtk# on our dual core 
>AMD/Windows setup. It wasn't till I tried it on my single core 
>machine and couldn't reproduce it that I began to think that it was 
>related to threads.
>I was able to reproduce your instability and to change the 
>application such that it would no longer crash.
>Please replace your Main method with the following and let me know 
>if it solves the problem.
>    public static void Main()
>     {
>         GLib.Thread.Init();
>         Gdk.Threads.Init();
>         Application.Init();
>         new Test();
>         Gdk.Threads.Enter();
>         try
>         {
>             Application.Run();
>         }
>         finally
>         {
>             Gdk.Threads.Leave();
>         }
>     }

Aaron Oxford   -   aaron+hardwarehookups .com .au
Director, Innovative Computer Solutions (Aust) Pty. Ltd.
49 Maitland Rd, Mayfield, NSW 2304 Australia
Developer, SourceForge project VioLet Composer

More information about the Gtk-sharp-list mailing list