Article View: borland.public.cppbuilder.nativeapi
Article #807Re: ensuring CriticalSections are release..
From: Dennis Jones
Date: Tue, 15 Jan 2008 01:13
Date: Tue, 15 Jan 2008 01:13
18 lines
1774 bytes
1774 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:478bf841$1@newsgroups.borland.com... > > "Dennis Jones" <nospam@nospam.com> wrote in message > news:478be3e4$1@newsgroups.borland.com... > >> I believe the warning is correct. It is the result of scopegaurd >> creating an RAII object whose destructor is invoked when it >> goes out of scope, but is not used otherwise. > > Then the same warning should apply to any other RAII object that is > created and destroyed without being accessed otherwise. Right (it seems only logical). What I don't understand, I guess, is why one would expect it NOT to generate a warning. - Dennis
Technical Details
Message-ID:
<478c08c8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<478a96e3@newsgroups.borland.com> <478b0076$1@newsgroups.borland.com> <478bac9a$1@newsgroups.borland.com> <478bba5f$1@newsgroups.borland.com> <478be3e4$1@newsgroups.borland.com> <478bf841$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,266d339b0fd4ba38 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: <478a96e3@newsgroups.borland.com> <478b0076$1@newsgroups.borland.com> <478bac9a$1@newsgroups.borland.com> <478bba5f$1@newsgroups.borland.com> <478be3e4$1@newsgroups.borland.com> <478bf841$1@newsgroups.borland.com> Subject: Re: ensuring CriticalSections are release.. Date: Mon, 14 Jan 2008 17:13:46 -0800 Lines: 20 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.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 71.245.109.58 Message-ID: <478c08c8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1200359624 71.245.109.58 (14 Jan 2008 17:13:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail