🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15674

Re: Com access violation

#15674
From: ScOe
Date: Fri, 20 Jun 2003 16:27
33 lines
1961 bytes
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3ef2ab8c$3@newsgroups.borland.com...
>
> "ScOe" <sven.savic@zg.hinet.hr> wrote in message
> news:3ef2a7e3@newsgroups.borland.com...
>
> What is the ACTUAL value of hr?  It tells you exactly why
CoCreateInstance()
> failed.
>
i forgot to call CoInitialize ...
now i receive S_OK but again access violation on FindInterface

void TfrmMain::InitializeTuner ()
{
HRESULT hr;
hr = CoInitialize(NULL);
IAMTVTuner *pTV;
IBaseFilter *pVCap;
CComPtr<ICaptureGraphBuilder2> graphBuilder2_;
hr = graphBuilder2_.CoCreateInstance( CLSID_CaptureGraphBuilder2 );
if(hr != S_OK)
    return;
hr = graphBuilder2_->FindInterface(&PIN_CATEGORY_CAPTURE,
                                  &MEDIATYPE_Interleaved, pVCap,
                                  IID_IAMTVTuner, (void **)&pTV);
...

>
> Gambit
>
>
Technical Details
Message-ID: <3ef3360f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ef1fb3e@newsgroups.borland.com> <3ef20150$1@newsgroups.borland.com> <3ef2a7e3@newsgroups.borland.com> <3ef2ab8c$3@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-20 09:32:01 PST
From: "ScOe" <sven.savic@zg.hinet.hr>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef1fb3e@newsgroups.borland.com> <3ef20150$1@newsgroups.borland.com> <3ef2a7e3@newsgroups.borland.com> <3ef2ab8c$3@newsgroups.borland.com>
Subject: Re: Com access violation
Date: Fri, 20 Jun 2003 18:27:58 +0200
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
NNTP-Posting-Host: 213.191.130.92
Message-ID: <3ef3360f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056126479 213.191.130.92 (20 Jun 2003 09:27:59 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail