?
Solved

How to know abnormal termination of an application in powerbuilder?

Posted on 2007-12-02
1
Medium Priority
?
425 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 1500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
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.
Suggested Courses
Course of the Month8 days, 2 hours left to enroll

765 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