Article View: borland.public.cppbuilder.nativeapi
Article #1572Re: Weird problem with WNetAddConnection2()
From: Dennis Jones
Date: Mon, 16 Jul 2007 16:57
Date: Mon, 16 Jul 2007 16:57
38 lines
2573 bytes
2573 bytes
"Bob Reeves" <bob@somethinxtra.com> wrote in message news:469b97ec$1@newsgroups.borland.com... > Thanks for responding.. > > All the network components and configuration settings were checked, double > checked and most replaced at some point during the troubleshooting > process. > The software doesn't call GetLastError, it just checks for a non 0 return. > I > know it should have been in the code in the first place but this code has > worked fine in many installations over 7 years. What few problems we have > had were always traced to an easily found network problem. > > We just finished building a replacement for the NT machine and am hoping > the > customer will just let me ship him the replacement. And if not? I can't help but wonder how many of the "traced to an easily found network problem" could have been solved even more quickly with a well-placed GetLastError. And just because you've never found it useful before, doesn't mean that GetLastError wouldn't be useful now. Surely by now you understand that there are many hundreds and thousands of ways software can fail, and that no one problem-solving technique can resolve them all. > When I get his machine back I will see if I can duplicate the problem > here. But you just said that "it has worked fine in many installations over 7 years." What makes you think that you will be able to duplicate such an elusive bug in another (even more predictable) environment? That seems very contradictory to me. I still think a simple software change to check for the exact error would be more effective. - Dennis
Technical Details
Message-ID:
<469ba372$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<469a536d@newsgroups.borland.com> <469b5fb1$1@newsgroups.borland.com> <469b97ec$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,254af1c09c7e7947 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <469a536d@newsgroups.borland.com> <469b5fb1$1@newsgroups.borland.com> <469b97ec$1@newsgroups.borland.com> Subject: Re: Weird problem with WNetAddConnection2() Date: Mon, 16 Jul 2007 09:57:23 -0700 Lines: 40 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: 71.245.109.58 Message-ID: <469ba372$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1184605042 71.245.109.58 (16 Jul 2007 09:57:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail