Re: Threads problem



On Mon, 2002-01-07 at 09:19, Ricky wrote:
> Hi all,
>    I have this problem regarding threads. In a popup widget, I have attached 
> the callback below to one of the buttons. If successful, it will run the 
> "else" part of the codes. In the "runServer ( )" routine, I will call two 
> threads to run a tcp_server and a udp_server module both of which are polling 
> continuous for incoming connections. The problem is that when I pressed the 
> button when everything is OK (i.e it jumps to the "else" part), my 
> application will get stuck at that window. 
> 
>   The threads are causing problem but I do not know how to solve this. Can 
> anybody help?
Which threads? Does the runServer spawn a thread and return ? If not
You will block your main evet loop.
Also read the Gtk FAQ, it has some notes about threads:
http://www.gtk.org/faq/#AEN462
 
--
Nils Olav Selåsdal <NOS Utel no>
System Developer, UtelSystems a/s
w w w . u t e l s y s t e m s . c o m






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