returning exit code from .exe without throwing exception
Posted: April 11th, 2014, 5:18 am
I need to exit a Phalanger Win Forms application with an exit code returned to the operating system (or calling process).
I have tried to use Environment::Exit(int) but this is not allowed because exit is flagged as a PHP reserved word. When I try to use the native php Exit() I get a .NET exception not handled error. Can I suppress this exception and pass the exit code out?
I have tried to use Environment::Exit(int) but this is not allowed because exit is flagged as a PHP reserved word. When I try to use the native php Exit() I get a .NET exception not handled error. Can I suppress this exception and pass the exit code out?