Hi All,
As you know, each incoming request spawns a new thread to handle the request.
However, you may not know, but this thread typically doesn't have a Window structure, has no ACCEPT loop, and simply runs from start to finish. This matters not, except in the case where you spawn your own thread from this thread.
If you wish to start a thread (to perform some task in the background) then typically you would call something like;
START(MyProc,25000)
Which normally would be sufficient. However because this thread has no ACCEPT loop, a slight variation to the START call is required. Your call to start the thread should look like this;
RESUME(START(MyProc,25000))
This allows the current thread to continue running, as well as giving some time to the newly started thread.
Cheers
Bruce
PS This tip applies on to Clarion 6 and later, RESUME is not in the language in Clarion 5.5.