Article View: borland.public.cppbuilder.nativeapi
Article #10809Re: CreateProcess question
From: Remy Lebeau (TeamB)
Date: Tue, 16 Mar 2004 17:47
Date: Tue, 16 Mar 2004 17:47
24 lines
1621 bytes
1621 bytes
"Mortz" <rmorteo@hotmail.com> wrote in message news:405734e0@newsgroups.borland.com... > the documentation says you have to close the HProcess > and HThread when they are no longer needed. That is correct. > Currently, I'm closing the handles when the "WaitForSingleObject" > function returns, however those documens may remain open after > my program closes When WaitForSingleObject() returns without any more timeouts, the process that is being waited on has been fully terminated. If the documents are remaining open, then either the spawned process is not closing them itself, or it is not the actual process that loads them to begin with. > should I close the handles when my program closes Yes. Gambit
Technical Details
Message-ID:
<40573b91$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<405734e0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2505b8cff121ddb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-16 09:40:20 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <405734e0@newsgroups.borland.com> Subject: Re: CreateProcess question Date: Tue, 16 Mar 2004 09:47:35 -0800 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40573b91$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079458705 67.22.138.253 (16 Mar 2004 09:38:25 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail