Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1559

Killing a thread

$
0
0

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
1009Invalid 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?
Thanks

 


Viewing all articles
Browse latest Browse all 1559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>