Article View: borland.public.cppbuilder.internet.web
Article #443Re: How to get the "real live" HTML source?
From: Remy Lebeau (TeamB)
Date: Thu, 28 Dec 2006 18:29
Date: Thu, 28 Dec 2006 18:29
29 lines
2230 bytes
2230 bytes
"Enrique" <enridp@yahoo.com.ar> wrote in message news:45940667@newsgroups.borland.com... > Hello again, I was seeing the MSDN intrfaces in more details, but > I'm not sure when I must to use ->Release() Interfaces are reference counted. When you obtain an interface pointer from QueryInterface(), AddRef() has been called on it to increment the reference count. When you are done with the pointer, you must call Release() to decrement the reference count. If you are working with the raw pointer directly, then you have to call Release() yourself. Most of the code I have given you is using smart pointer wrapper classes instead, which call Release() for you when they go out of scope. > The sample codes in MSDN uses it frequently That is because Microsoft rarely uses smart pointers in its sample code. > I have many codes that works fine without Release() Only if they are using smart pointers. Otherwise, you are leaking memory. > even more, the code sent by Gambit is one of them. I usually use smart pointers in my code. Gambit
Technical Details
Message-ID:
<45940db0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4582e657@newsgroups.borland.com> <4582eb35$1@newsgroups.borland.com> <45831d53@newsgroups.borland.com> <4583480c$1@newsgroups.borland.com> <45834aa4$1@newsgroups.borland.com> <4583eee0@newsgroups.borland.com> <4586f05a$1@newsgroups.borland.com> <4588092d@newsgroups.borland.com> <458830cd$1@newsgroups.borland.com> <45940667@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,b54437b3b496861e X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <4582e657@newsgroups.borland.com> <4582eb35$1@newsgroups.borland.com> <45831d53@newsgroups.borland.com> <4583480c$1@newsgroups.borland.com> <45834aa4$1@newsgroups.borland.com> <4583eee0@newsgroups.borland.com> <4586f05a$1@newsgroups.borland.com> <4588092d@newsgroups.borland.com> <458830cd$1@newsgroups.borland.com> <45940667@newsgroups.borland.com> Subject: Re: How to get the "real live" HTML source? Date: Thu, 28 Dec 2006 10:29:31 -0800 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45940db0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1167330736 75.83.34.171 (28 Dec 2006 10:32:16 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail