Article View: borland.public.cppbuilder.internet.web
Article #1345Re: Show Find dialog in TCppWebBrowser
From: Remy Lebeau (TeamB)
Date: Wed, 23 Feb 2005 18:36
Date: Wed, 23 Feb 2005 18:36
18 lines
1850 bytes
1850 bytes
"Albert Wiersch" <mrinternetnewsborland@wiersch.com> wrote in message news:421caa1a$1@newsgroups.borland.com... > CmdTarget->Release(); Get rid of that. You are releasing the interface too many times. When QueryInterface() returns, the interface has a reference count of 1, and TComInterface is taking ownership of the interface pointer. Then you are calling Release() to manually decrement the count to 0, destroying the interface object. But TComInterface is then decrementing the reference count again when it itself is freed, which will crash since the interface object is no longer valid. The whole point of using TComInterface is that it handles the reference counting for you automatically so you don't have to do it yourself manually. Gambit
Technical Details
Message-ID:
<421ccd27$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<421bcfa2$1@newsgroups.borland.com> <421bd738$1@newsgroups.borland.com> <421be1c2$1@newsgroups.borland.com> <421c5106$1@newsgroups.borland.com> <421caa1a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,767b6514a77617a0 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: <421bcfa2$1@newsgroups.borland.com> <421bd738$1@newsgroups.borland.com> <421be1c2$1@newsgroups.borland.com> <421c5106$1@newsgroups.borland.com> <421caa1a$1@newsgroups.borland.com> Subject: Re: Show Find dialog in TCppWebBrowser Date: Wed, 23 Feb 2005 10:36:23 -0800 Lines: 20 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: 68.69.17.41 Message-ID: <421ccd27$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109183783 68.69.17.41 (23 Feb 2005 10:36:23 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail