Article View: borland.public.cppbuilder.nativeapi
Article #1393Re: CreateProcess() in Automation server freezes caller
From: Wiebe Vos
Date: Wed, 12 Sep 2007 10:39
Date: Wed, 12 Sep 2007 10:39
29 lines
2005 bytes
2005 bytes
Hi Remy, Remy Lebeau (TeamB) wrote: > You don't need 2 COM servers for bi-directional communication to work. Agreed. However both programs also serve other purposes. > As it should be. You designed your COM function to block the caller until > the work is done. My brief explanation about the design requires more clarification: The automationserver, once initially started from the main application, runs independend in the background and at certain intervals (via a timer) it launches the thirdparty program. This downloads a substantial amount of (stockmarket) data to a file, whose content is subsequently processed by the automationserver. After completion, the automationserver notifies the main application who takes further care of the data. So the main application (though fully blocked during the execution of the thirdparty program) is not the 'caller' but the automation server (also blocked) is. Anyhow the problem is solved by applying Bob Gonders suggestion. Thanks, Wiebe
Technical Details
Message-ID:
<46e7c1df$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46e69558$1@newsgroups.borland.com> <46e6cfc6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ab74d8f845bd4978 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Wiebe Vos" <wiebe@foxware.nl> Newsgroups: borland.public.cppbuilder.nativeapi References: <46e69558$1@newsgroups.borland.com> <46e6cfc6$1@newsgroups.borland.com> Subject: Re: CreateProcess() in Automation server freezes caller Date: Wed, 12 Sep 2007 12:39:30 +0200 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 62.131.171.202 Message-ID: <46e7c1df$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1189593567 62.131.171.202 (12 Sep 2007 03:39:27 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail