Solved

Always send message on destroy

Posted on 2001-08-24
5
204 Views
Last Modified: 2010-04-06
Hi

I have two applications, the one should know if the other program is startet.
So my plan is that I send a message on startup and another one in the OnDestroy, but am I always sure that this message will be send if the program craches ?

Any ideas how to handle it.
0
Comment
Question by:bnz
[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
5 Comments
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 6422944
Create a global WH_SHELL hook and you will be informed of all program starts and ends.
The hook has to reside in a DLL.
0
 

Author Comment

by:bnz
ID: 6423119
Hmm it seems like a bit of a overkill, is there not an easier way.
0
 
LVL 4

Expert Comment

by:YodaMage
ID: 6423314
You'd have to check for the other program on a timer. Biggest drawback is the wasted resources of a constantly running routine on a timer in the first place.
0
 
LVL 1

Accepted Solution

by:
sundayboys earned 100 total points
ID: 6424064
0
 
LVL 9

Expert Comment

by:ITugay
ID: 6424491
Hi bnz,

there is DDE components in Delphi. It intended to build conversation mechanizm between applications. May be it will be usefull for you.

-----
Igor
0

Featured Post

Independent Software Vendors: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 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