Re: GTK application hangs in Windows and Wine, works fine in Linux



it's open source
and the URL is here if you want to see the source code perhaps :
http://houbysoft.com/cc/

The download of fhe source code is hidden behind some silly enforced
30 second wait. If you want somebody to fix your problems in code, at
least you could make it easier to see the source code.

But I did bother anyway and had a quick look. It seems that your code
uses GTK+ from multiple threads. That doesn't work on Windows. It is a
well known fact and documented (albeit not perhaps visibly enough).

(If you ask around, most people presumably will tell you that using
GTK+ from multiple threads is not a good idea in general on Unix
either. Sure, it is fine to use threads for heavy computation tasks in
the background in GTK+ applications, but it's better to use
g_idle_add() from threads to schedule functions  that call GTK+ to be
run in the main thread.)

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]