Re: Gtk+ problem with time-consuming threads

2009-05-18 Thread Rob Taylor
Paul Chitescu wrote: > On Monday 18 May 2009 14:12:00 Alexander Larsson wrote: >> On Thu, 2009-05-14 at 10:18 +0300, Tor Lillqvist wrote: > You can't use GTK+ from multiple threads on Windows. That is just how > it is. It is a consequence of GTK+ originally being written just for > X11.

Re: Gtk+ problem with time-consuming threads

2009-05-18 Thread Paul Chitescu
On Monday 18 May 2009 14:12:00 Alexander Larsson wrote: > On Thu, 2009-05-14 at 10:18 +0300, Tor Lillqvist wrote: > > >> You can't use GTK+ from multiple threads on Windows. That is just how > > >> it is. It is a consequence of GTK+ originally being written just for > > >> X11. > > > > > > I always

Re: Gtk+ problem with time-consuming threads

2009-05-18 Thread Alexander Larsson
On Thu, 2009-05-14 at 10:18 +0300, Tor Lillqvist wrote: > >> You can't use GTK+ from multiple threads on Windows. That is just how > >> it is. It is a consequence of GTK+ originally being written just for X11. > > > I always thought it was because of how the Windows event model works. > > Yes, ex

Re: Gtk+ problem with time-consuming threads

2009-05-14 Thread Tor Lillqvist
>> You can't use GTK+ from multiple threads on Windows. That is just how >> it is. It is a consequence of GTK+ originally being written just for X11. > I always thought it was because of how the Windows event model works. Yes, exactly. That is what I mean. With its dichotomy of "sending" and "pos

Re: Gtk+ problem with time-consuming threads

2009-05-13 Thread Michael Torrie
patkhor wrote: > Hi, > > I'm trying to add GUI for my application and I choose to do it with Gtk+. > I've asked on this forum before about multithreading, but I still can't get > it right. I found few examples on how to use gthread on the web, but none of > them answers my question. While I supp

Re: Gtk+ problem with time-consuming threads

2009-05-13 Thread Michael Torrie
Tor Lillqvist wrote: > You can't use GTK+ from multiple threads on Windows. That is just how > it is. It is a consequence of GTK+ originally being written just for > X11. I always thought it was because of how the Windows event model works. Back in the horrible old MFC days I remember having to se

Re: Gtk+ problem with time-consuming threads

2009-05-11 Thread Tor Lillqvist
> (FYI: I programs using C language and compile it with gcc compiler on > MinGW.) You can't use GTK+ from multiple threads on Windows. That is just how it is. It is a consequence of GTK+ originally being written just for X11. > Could someone please give me little sample code that provide only one

Re: Gtk+ problem with time-consuming threads

2009-05-11 Thread Sven Herzberg
Am Dienstag, den 05.05.2009, 18:57 -0700 schrieb patkhor: > I provide the user with the OK button, when user click on that button, the > program will create some number of threads (more than 10) and each threads > will do time-consuming work in the background. I successfully compiled my > program,

Gtk+ problem with time-consuming threads

2009-05-11 Thread patkhor
Hi, I'm trying to add GUI for my application and I choose to do it with Gtk+. I've asked on this forum before about multithreading, but I still can't get it right. I found few examples on how to use gthread on the web, but none of them answers my question. My problem is: (FYI: I programs using