Re: writing to GUI from 2+ threads
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: ZB <zb197 yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: writing to GUI from 2+ threads
- Date: Tue, 26 Jun 2001 12:22:44 +0200
Hi,
> I am trying to write to the GUI from more than one
> thread and it works with LINUX but not win32. I made a
> stub program by modifying the threaded hello world
> program (http://www.gtk.org/faq/#AEN462) from the gtk
> site. The program creates a window and then starts a
> thread and i modified the thread to show a second
> window. In LINUX, it works great. In win32.. the
> second window freezes halfway shown and the app gets
> stuck.
> (for win32.. i am using the DLLs posted 12/26 at
> http://user.sgic.fi/~tml/gimp/win32/downloads.html)
> I also downloaded the 1.3.6 GTK and compiled the
> latest DLLs for windows. The same problem still
> persists and the window remains half shown.
> I am always using gdk_thread_enter and leave within my
> thread.
There might be a deadlock in GTK+ for win32. You can find out by compiling the
test program with -DG_ERRORCHECK_MUTEXES. If that really confirms, that there
is a deadlock, I would also compile GLib and GTK+ with -DG_ERRORCHECK_MUTEXES
to find out where that deadlock is.
Bye,
Sebastian
--
Sebastian Wilhelmi
mailto:wilhelmi ira uka de
http://goethe.ira.uka.de/~wilhelmi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]