Steve,

>Why are you fetching the routine more than once? Fetch
>it once and it stays there until the process ends. If

Because I want the Prog to start always in its initial state. But ok, I
could do an INITIALIZE to all my WORKING STORAGE stuff.


>Is the COBOL program compiled with THREAD? In your
>multi-threaded application you will need this. [It

No, it isn't. THREAD is only available with Enterprise COBOL and we don't
have this. But my application starts a "CALL-COBOL-Thread" that gets
notified by all other threads that a COBOL-Prog needs to be executed. So I
ensure that always the same Thread fetches and enters the COBOL-Prog.


>can still run in non-threaded apps, although it will
>be slower.]

Slower is evil ;->


I've also tried to use fork()/execl() and spawn() but all in vain. spawn()
and execl() always returned -1 and I don't know what I'm doing wrong :-(


Bye
  Michael

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to