Solved

How to know abnormal termination of an application in powerbuilder?

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VS2008 C++ memory leaks and how to fix them 7 200
Refresh JTable Content 6 207
I can't set a breakpoint ? 5 125
error when i compile 5 637
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

773 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