Page 1 of 1

Problem of "hanging" ended programs solved!!

Posted: Wed Nov 15, 2006 12:20 pm
by Didelphodon
Know the problem if you start a program out of your's with RunProgram and it doesn't disappear from the processlist though it has already ended?? :shock:

Here's the reason why and the solution:
The called program wants to return a ReturnCode to the caller, even if you didn't use End RC to finish it (!!), and this ReturnCode HAS TO BE read. So just use the command ProgramExitCode(program) to read it and the called program/process is happy with that and will go away for sure. :P

Greetz, Didelphodon.

Posted: Wed Nov 15, 2006 2:53 pm
by dracflamloc
Cool, good find

Posted: Wed Nov 15, 2006 4:25 pm
by Trond
Doesn't CloseProgram() work?

Posted: Wed Nov 15, 2006 4:45 pm
by Didelphodon
Trond wrote:Doesn't CloseProgram() work?
No - at least not in my situation(s). :wink: