🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1389

Re: CreateProcess() in Automation server freezes caller

#1389
From: Bob Gonder
Date: Tue, 11 Sep 2007 16:55
12 lines
1590 bytes
Wiebe Vos wrote:

>I did CreateProcess() in a thread. However this does not solve the problem.
>(Also not if using MsgWaitForMultipleObjects() instead of 
>WaitForSingleObject())

PeekMessage only sees messages for the current thread.

If you create a thread to run the CreateProcess() :
1) The thread won't be getting any messages.
2) Your application won't be waiting for the process (unless  you
are waiting for the thread, which puts you back to the same problem).
Technical Details
Message-ID: <3qhde35ho37q88areoanba1k63023fvuoe@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46e69558$1@newsgroups.borland.com> <46e69728$1@newsgroups.borland.com> <46e6b326$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: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CreateProcess() in Automation server freezes caller
Date: Tue, 11 Sep 2007 09:55:31 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <3qhde35ho37q88areoanba1k63023fvuoe@4ax.com>
References: <46e69558$1@newsgroups.borland.com> <46e69728$1@newsgroups.borland.com> <46e6b326$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.83.116
X-Trace: newsgroups.borland.com 1189529852 69.69.83.116 (11 Sep 2007 09:57:32 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail