Article View: borland.public.cppbuilder.nativeapi
Article #14756Re: Overlapped I/O operation is in progress - Service functions
From: Norm Jaffe
Date: Fri, 01 Aug 2003 15:48
Date: Fri, 01 Aug 2003 15:48
32 lines
2370 bytes
2370 bytes
GetLastError() only returns a meaningful value if an error has occurred. If you use it without checking for an error first, you will get an arbitrary result - and it often indicates an internal, non-error, condition that Windows is using to communicate between it's own routines. There is nothing to "overcome". You have done the Windows equivalent of using the contents of an uninitialized value. Norm "Maurice Anderson" <mauriceanderson@hotmail.com> wrote in message news:3f29cac6$1@newsgroups.borland.com... > > The last errorcode is only updated if OpenService fails, so what you see > is > > whatever value the last error already had. > > You should only call GetLastError() if some Win32 function fails - the > > documentation for the Win32 functions specifically state when > GetLastError() > > can be used to get additional information. > > Yes. I understand the purpose of the GetLastError function. But what does > the "Overlapped I/O operation is in progress" error returned by GetLastError > and how can I overcome it. This is of course assuming the last error is > indeed "Overlapped I/O operation is in progress". > > Thanks, > > -M- > > >
Technical Details
Message-ID:
<3f2a8be0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!wn14feed!worldnet.att.net!208.49.253.98!newsfeed.news2me.com!snoopy.risq.qc.ca!chi1.webusenet.com!c03.atl99!news.webusenet.com!diablo.voicenet.com!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f28c2fd$1@newsgroups.borland.com> <3f28e023$1@newsgroups.borland.com> <3f29cac6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,61a755f387ee0607 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-01 08:52:55 PST From: "Norm Jaffe" <mail@aurelsystems.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f28c2fd$1@newsgroups.borland.com> <3f28e023$1@newsgroups.borland.com> <3f29cac6$1@newsgroups.borland.com> Subject: Re: Overlapped I/O operation is in progress - Service functions Date: Fri, 1 Aug 2003 08:48:52 -0700 Lines: 34 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: 209.121.14.114 Message-ID: <3f2a8be0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059752928 209.121.14.114 (1 Aug 2003 08:48:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!wn14feed!worldnet.att.net!208.49.253.98!newsfeed.news2me.com!snoopy.risq.qc.ca!chi1.webusenet.com!c03.atl99!news.webusenet.com!diablo.voicenet.com!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail