Does the app that is servicing the request send a response back when it is
completed? If not, then you might want to implement a "I'm Alive" message
that is send between them, or at least from the servicing app back at
regular expected intervals. If the app that's hanging does not receive
either a response to its request or the "I'm alive" message within a certain
amount of time, it can then infer that the servicing service is down or
there is some other connectivity problem. 

-----Original Message-----
From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf
Of J H
Sent: Wednesday, August 12, 2009 2:13 AM
To: delphi@elists.org
Subject: Servicing hanging messages ?

I have two applications running sending messages to each other.

Currently one of them crashes due to some memory violation, which I am
working on.

But as it terminates in a non normal way, it does not tell the other
app, that it is no longer servicing in-coming messages. Thus the other
app. hangs!

Is there a way for, say, a third app. or a separate thread to monitor
and service such hanging messages ?

As it is, I have to start both apps up from scratch. It would be very
unlikely the the window handle for the new edition of App 1 is the same.
And there is still that hanging message.



<P><p><font face="Arial, Helvetica, sans-serif" size="2"
style="font-size:13.5px">___________________________________________________
____________<BR>http://www.sol.dk/ - debat mail horoskoper spil og meget
mere</font>
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi





E-mail message checked by Spyware Doctor (6.0.1.441)
Database version: 6.13020
http://www.pctools.com/en/spyware-doctor-antivirus/

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to