Solved

How to know abnormal termination of an application in powerbuilder?

Posted on 2007-12-02
1
422 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

724 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