<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 bgColor=#ffffff text=#000000
CanvasTabStop="true" name="Compose message area">
<DIV><FONT size=2 face=Arial>Which way would you favour to do the following
?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have two Delphi programs (A and B) that I
will pass data from A to B - I will probably use a file to
put the data in because its quite structured. B will sleep on a
timer loop until this something is triggered.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>What I want to do is send a simple notification
from program A to B that there is something to do - i.e. trigger an
event in B to wake and do something to process this.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>There are various ways I could communicate this
notification</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>1 - Has to add minimal overhead of size and
processing to programs A and B</FONT></DIV>
<DIV><FONT size=2 face=Arial>2 - A can tolerate B not responding immediately
without freezing but preferably will know</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The ways I have considered to be candidates
are</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>a - Windows messaging</FONT></DIV>
<DIV><FONT size=2 face=Arial>b - TCP/IP Indy (which could send the
data too. (adds complexity of needs to be done in a thread to
not affect the main program A)</FONT></DIV>
<DIV><FONT size=2 face=Arial>c - make program B a DLL</FONT></DIV>
<DIV><FONT size=2 face=Arial>d - Roll my own - make a timer in B which polls for
for some condition and otherwise continues to sleep</FONT></DIV>
<DIV><FONT size=2 face=Arial>e - something else.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Kindly share your favoured options how
you might do this.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>John</FONT></DIV></BODY></HTML>