Posted: Tue Mar 12, 2002 3:46 pm
Restored from previous forum. Originally posted by Horst Hammer.
Hello,
I was looking arround in the posts for a while. But it seems as I am the first one with this kind of problem?
I want to make a client for a special networking application.
I packed everyting into procedures and i wanted to start 2 threads:
1 Thread that loops forever and fetches window_event
1 Thread for fetching the Network events (also looping)
If I normally call the Procedure with the window_event loop it works fine,
but if I try to start this Procedure as a Thread it immediatly exits the program and! the debugger? The Procedure is never called?
Or is there a better way to reduce CPU consumption than using threads?
Hello,
I was looking arround in the posts for a while. But it seems as I am the first one with this kind of problem?
I want to make a client for a special networking application.
I packed everyting into procedures and i wanted to start 2 threads:
1 Thread that loops forever and fetches window_event
1 Thread for fetching the Network events (also looping)
If I normally call the Procedure with the window_event loop it works fine,
but if I try to start this Procedure as a Thread it immediatly exits the program and! the debugger? The Procedure is never called?
Or is there a better way to reduce CPU consumption than using threads?