<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal
}
SPAN.EmailStyle18 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-NZ vLink=purple link=blue>
<DIV><SPAN class=156421021-08052007><FONT face=Arial color=#0000ff size=2>Hi 
Ross,</FONT></SPAN></DIV>
<DIV><SPAN class=156421021-08052007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=156421021-08052007><FONT face=Arial color=#0000ff size=2>I am 
currently&nbsp;using a memory mapped file.</FONT></SPAN></DIV>
<DIV><SPAN class=156421021-08052007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=156421021-08052007><FONT face=Arial color=#0000ff 
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=156421021-08052007><FONT face=Arial color=#0000ff 
size=2>Leigh</FONT></SPAN></DIV>
<DIV><SPAN class=156421021-08052007></SPAN><FONT face=Tahoma><BR><FONT 
size=2><SPAN class=156421021-08052007><FONT face=Arial 
color=#0000ff>&nbsp;</FONT></SPAN>-----Original Message-----<BR><B>From:</B> 
delphi-bounces@delphi.org.nz [mailto:delphi-bounces@delphi.org.nz]<B>On Behalf 
Of </B>Ross Levis<BR><B>Sent:</B> Tuesday, 8 May 2007 5:37 p.m.<BR><B>To:</B> 
'NZ Borland Developers Group - Delphi List'<BR><B>Subject:</B> RE: [DUG] Sending 
data between process on same computer on windows<BR><BR></FONT></DIV></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=Section1>
  <P class=MsoNormal><SPAN 
  style="COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I would use shared 
  memory.&nbsp; I use this free component.<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">http://www.torry.net/vcl/system/appscommunications/sharedmemory.zip<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">It uses a memory 
  mapped file system but without a physical file.&nbsp; It can use messages for 
  triggering events at each end, but I actually use a variable in a record which 
  I check in a 10ms loop to know when to do something.&nbsp; It works very 
  well.<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Ross.<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
  <DIV>
  <DIV 
  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
  <P class=MsoNormal><B><SPAN lang=EN-US 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN 
  lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> 
  delphi-bounces@delphi.org.nz [mailto:delphi-bounces@delphi.org.nz] <B>On 
  Behalf Of </B>Myles Penlington<BR><B>Sent:</B> Tuesday, 8 May 2007 
  9:40<BR><B>To:</B> NZ Borland Developers Group - Delphi 
  List<BR><B>Subject:</B> RE: [DUG] Sending data between process on same 
  computer on windows<o:p></o:p></SPAN></P></DIV></DIV>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Shared 
  memory of course!<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">How 
  much data are you talking about, how often?<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">For 
  IPC, IMO, I would never use Sendmessage for something that needed to be 100% 
  reliable.<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Myles.<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
  <DIV>
  <DIV 
  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
  <P class=MsoNormal><B><SPAN lang=EN-US 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN 
  lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> 
  delphi-bounces@delphi.org.nz [mailto:delphi-bounces@delphi.org.nz] <B>On 
  Behalf Of </B>Leigh Wanstead<BR><B>Sent:</B> Tuesday, 8 May 2007 
  09:35<BR><B>To:</B> delphi@delphi.org.nz<BR><B>Subject:</B> [DUG] Sending data 
  between process on same computer on windows<o:p></o:p></SPAN></P></DIV></DIV>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <DIV>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hello 
  everyone,</SPAN><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal>&nbsp;<o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">May I ask what is 
  the fastest way to send data between process on same computer on windows? I 
  assume sendmessage api faster than semaphore waiting, of course faster than 
  TCP/IP which will go through huge amounts of tcp/ip stack.&nbsp;I just want 
  lowest overhead on per call. Anyone have any experiences on 
  that?</SPAN><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal>&nbsp;<o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">TIA</SPAN><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal>&nbsp;<o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Regards</SPAN><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Leigh</SPAN><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><A 
  href="http://www.smootharm.com">www.smootharm.com</A></SPAN><o:p></o:p></P></DIV>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'Verdana','sans-serif'">Attention:<BR>This 
  communication is confidential and may be legally privileged.&nbsp; If you are 
  not the intended recipient, please do not use, disclose, copy or distribute 
  it, other than to return it to us with your confirmation that it has been 
  deleted from your system.</SPAN><o:p></o:p></P></DIV></BLOCKQUOTE></BODY></HTML>