Hi,
I have setup NSSM to invoke my PB application. The issue I am facing is that:
I have written code in close query event of my window that opens up from application open event. Code in the close query will trigger the timer event and then go ahead with the closure steps to update few details in the DB and this will return code of 1 not to trigger the close event until the necessary updates are done. Once the DB updates are done I am calling the close function to close the application.
When I run the application through PB IDE and then close the application through Cross button on the top, the close query is getting triggered and in turn timer event is getting triggered. But somehow through NSSM if I Stop the service, it is triggering the close query ( verified this with logging a message in DB) but the timer event is not getting triggered.
How can NSSM wait for sometime (so that in the mean time, the DB updates would be done) after receiving the STOP signal?
Thanks,
Sailaja.