[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
Aaron.
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();
> }
> }
>
>Eric
><http://www.wesay.org>www.wesay.org
---------------------------------------------------------------------------------
Aaron Oxford - aaron+hardwarehookups .com .au
Director, Innovative Computer Solutions (Aust) Pty. Ltd.
49 Maitland Rd, Mayfield, NSW 2304 Australia
http://www.ic-solutions.com.au
Developer, SourceForge project VioLet Composer
http://sourceforge.net/projects/buzz-like
More information about the Gtk-sharp-list
mailing list