Re: GThread + GTK+ on windows - problem
- From: Tristan Van Berkom <tvb gnome org>
- To: Tomasz Jaknowski <tomcioj gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GThread + GTK+ on windows - problem
- Date: Mon, 17 Apr 2006 10:50:36 -0400
Tomasz Jaknowski wrote:
hello!
I'm trying to compile this code under Windows using DevC++ and GTK+
stuff from http://gladewin32.sourceforge.net/ :
My DevC++ is well configured because I can compile and run single thread
GTK+ application or compile and run console program using GThread witout
any problems. I have problem only, when I'm trying to use GThread and
GTK+ in one application.
o Call gdk_treads_enter() before calling gtk_main(), not before
calling gtk_init().
o Call gdk_threads_enter() before creating and showing the dialog
in the second thread; then call gdk_threads_leave() afterwords.
o Read what the FAQ says about threads (http://www.gtk.org/faq/)
o Always mention what is going wrong with your application, even
an inline error message or a printout of your stack-trace is
more usefull than "it doesnt work on windows".
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]