Article View: borland.public.cppbuilder.nativeapi
Article #9148Re: launching separate program
From: Bob Gonder
Date: Wed, 28 Jul 2004 17:13
Date: Wed, 28 Jul 2004 17:13
18 lines
1801 bytes
1801 bytes
Blake Young wrote: >When you no longer need these handles, close them by using the CloseHandle >function. > >If I remove those lines, my original program won't ever know when the >external program has finished execution and the handles will never be >closed. I'm not sure what implications this will have; what if the user >continues launching this external program over and over without closing >them? Maybe this isn't a big problem to begin with...I just wanted to check. You might not have read far enough. Also from the help: "The handles for both the process and the main thread must be closed through calls to CloseHandle. If these handles are not needed, it is best to close them immediately after the process is created." So, remove the wait, but not the closehandles.
Technical Details
Message-ID:
<ffnfg0ddpqd89eancngsev4eh3tg7f6kl6@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4107c722$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4306aa7d734acfa6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: launching separate program Date: Wed, 28 Jul 2004 10:13:47 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <ffnfg0ddpqd89eancngsev4eh3tg7f6kl6@4ax.com> References: <4107c722$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: 65.41.210.184 X-Trace: newsgroups.borland.com 1091034829 65.41.210.184 (28 Jul 2004 10:13:49 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail