Article View: borland.public.cppbuilder.nativeapi
Article #15650Re: Com access violation
From: Remy Lebeau (TeamB)
Date: Thu, 19 Jun 2003 18:34
Date: Thu, 19 Jun 2003 18:34
13 lines
1352 bytes
1352 bytes
"ScOe" <sven.savic@zg.hinet.hr> wrote in message news:3ef1fb3e@newsgroups.borland.com... > Why do i get access violation on FindInterface ? You did not actually instantiate an ICaptureGraphBuilder2 instance first and assign it to the CComPtr before then invoking the '->' operator. Thus the CComPtr still contained a NULL interface pointer internally, so the '->' operator was invoked on a NULL pointer and it threw an exception. Gambit
Technical Details
Message-ID:
<3ef20150$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ef1fb3e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,145244a27e8699b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-19 11:39:30 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ef1fb3e@newsgroups.borland.com> Subject: Re: Com access violation Date: Thu, 19 Jun 2003 11:34:37 -0700 Lines: 15 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: 207.175.226.26 Message-ID: <3ef20150$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1056047440 207.175.226.26 (19 Jun 2003 11:30:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail