I tried running a .js with a WScript.Quit() call and noticed it isn't implemented yet in programs/wscript/host.c. Would a simple ExitProcess( ExitCode ) do the job or are there cases where this would be the wrong thing to do?
Hi Thiago,
On 27.06.2016 06:21, Thiago Barbato wrote:
I tried running a .js with a WScript.Quit() call and noticed it isn't implemented yet in programs/wscript/host.c. Would a simple ExitProcess( ExitCode ) do the job or are there cases where this would be the wrong thing to do?
Ideally, we should properly close script engines so that they have a chance for proper clean up. It may not be critical for engines themselves, but we can't know what other COM objects are used by scripts.
That said, I'd be fine with ExitProcess() as a temporary solution.
Jacek