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
01 THREAD-StatusBar-Routine USAGE IS THREAD-POINTER.
and my call statement is
CALL "CBL_THREAD_KILL" USING BY VALUE THREAD-StatusBar-Routine 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?