Killing a thread

I have created a thread using the CBL_CREATE_THREAD routine. However, when I attempt to kill the thread using CBL_THREAD_KILL it does not kill the thread. The thread remains running. My thread is defined as follows

and my call statement is
           Move Return-Code To Thread-Return-Code.

The return code I get is
1009 Invalid parameter passed into a multi-threading library routine. A parameter has been detected that is not within the valid range, or that is inconsistent with the library routine.

Also in visual studio intellisense it says can not find method CBL_THREAD_KILL with this signature. Will create dynamic call.

What am I doing wrong?


Parents Reply Children
No Data