Solved

How to know abnormal termination of an application in powerbuilder?

Posted on 2007-12-02
1
397 Views
Last Modified: 2013-12-26
Hi,

I want to know/log if my application was abnormally closed or closed by using task manager?

can anyone give a code for this one?

thanks,

harry
0
Comment
Question by:hemiras
1 Comment
 
LVL 12

Accepted Solution

by:
Harish Varghese earned 500 total points
ID: 20450351
Hi Harry,

I don't know if there is a way to capture an abnormal program termination. when the application is closed using Task Manager, the application still try to continue the normal program closing sequence (unless the program is busy with some action and cannot respond to normal closing request).
If your requirement is to check if the program was closed abnormally when it was executed last time, then you may write the status into a file (or database). Whenever your application is opened and closed in normal way, write the status into one file (or database, depending on the type of your appliaction). When the application is opened (run next time) check if there was status updated in the file to know if it was closed normally or abnormally.

Please let me know if you more info.

Thanks,
Harish
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now