Posted: Wed Mar 13, 2002 11:24 am
Restored from previous forum. Originally posted by Horst Hammer.
I am wondering about the right usage of Threads at the moment.
I created a procedure like this:
and before I call the WaitWindowEvent loop I start to create a thread like this:
If I extract this code to and compile the application exits without staring the thread.
If I add it to my current app it crashes.
Anyone having an idea, what my mistake is?
I am wondering about the right usage of Threads at the moment.
I created a procedure like this:
Code: Select all
;-------------------------------------------
; The Main Loop for NetworkEvents
;-------------------------------------------
Procedure NetworkHandler(dummy)
Repeat
NetEvent = NetworkClientEvent()
NetEvent = 0
Until ForEver
EndProcedure
Code: Select all
CreateThread(@NetworkHandler,0) If I add it to my current app it crashes.
Anyone having an idea, what my mistake is?