Article View: borland.public.cppbuilder.nativeapi
Article #1392Re: CreateProcess() in Automation server freezes caller
From: Wiebe Vos
Date: Wed, 12 Sep 2007 10:09
Date: Wed, 12 Sep 2007 10:09
23 lines
1587 bytes
1587 bytes
Hi Bob,
> Bob Gonder wrote:
> Very much too restrictive. Use QS_ALLINPUT instead.
> Again, too restrictive.
> You say mouse and keyboard are locked, that would
> be because you are only looking at paint messages.
> Use general message pump.
>
> while ( PeekMessage( &msg, 0, 0,0, PM_REMOVE ) )
> {
> TranslateMessage(&msg);
> DispatchMessage(&msg);
> }
That's it.
So CreateProcess (not in a TThread) and MsgWaitForMultipleObjects
solved this problem.
Thanks,
Wiebe
Technical Details
Message-ID:
<46e7baed$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46e69558$1@newsgroups.borland.com> <1eede39jn4jcrc9jpndbb8854q5f82lcnb@4ax.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> <1eede39jn4jcrc9jpndbb8854q5f82lcnb@4ax.com> Subject: Re: CreateProcess() in Automation server freezes caller Date: Wed, 12 Sep 2007 12:09:51 +0200 Lines: 25 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: <46e7baed$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1189591789 62.131.171.202 (12 Sep 2007 03:09:49 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail