?
Solved

Always send message on destroy

Posted on 2001-08-24
5
Medium Priority
?
206 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 benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

762 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