Solved

How to know abnormal termination of an application in powerbuilder?

Posted on 2007-12-02
1
409 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

791 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