[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Always send message on destroy

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

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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month18 days, 20 hours left to enroll

834 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