[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Always send message on destroy

Posted on 2001-08-24
5
Medium Priority
?
207 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

649 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