Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

PB 12.6 (build 3506) Application Exit Codes

$
0
0

Environment:  Windos 2012 R2 Server,

PowerBuilder 12.6 Build 3506

Building 32 bit application

 

I've got a utility application that's running as a service.  We're using NSSM (the Non-Sucking Service Manager) to run the program.

 

NSSM can take actions depending on the exit code.

 

In earlier versions of PowerBuilder I could accomplish this by setting Message.LongParm in the application close or application system error event.

 

Now, that's not working and the advice I'm seeing tends more toward

 

// External FUNCTION declaration

SUBROUTINE ExitProcess(ulong uExitCode) LIBRARY "kernel32.dll"

 

// Powerscript

ExitProcess(50)

 

But that seems like it terminates the application and any clean up that might have occurred with a normal application exit isn't going to happen.

 

my question is...

 

Is this really my only option or is there some other way I have not been able to find?

 

Secondary concern.. where do I find the full 12.6 manuals?  I keep ending up at SyBooks which only has documentation up to 12.0 and SAP PowerBuilder 12.6 – SAP Help Portal Page only gives me the new feature guide, installation and release notes, but not the actual documentation.


Viewing all articles
Browse latest Browse all 2881

Trending Articles