Article View: borland.public.cppbuilder.multimedia
Article #270Re: Access Violation?!
From: Remy Lebeau (TeamB)
Date: Thu, 23 Dec 2004 18:06
Date: Thu, 23 Dec 2004 18:06
32 lines
1766 bytes
1766 bytes
"Juampi David" <multimedia@mdpsistemas.com.ar> wrote in message
news:41caebfa@newsgroups.borland.com...
> IAMTimelineGroup *pGroup;
>
> pGroup->SetMediaType(&mtGroup);
You are declaring an uninitialized pointer and not instantiating an
IAMTimelineGroup object before using it. For example:
IAMTimeline *pTimeline = NULL;
IAMTimelineObj *pObj = NULL;
IAMTimelineGroup *pGroup = NULL;
// first obtain the Timeline as needed, then do one of the following as
needed ...
pTimeline->CreateEmptyNode(&pObj, TIMELINE_MAJOR_TYPE_GROUP);
// or ...
pTimeline->GetGroup(&pObj, SomeIndex);
// then obtain the Group...
if( pObj )
{
pObj->QueryInterface(IID_IAMTimelineGroup, (LPVOID*)&pGroup);
// now use the Group as needed...
pGroup->Release();
}
Gambit
Technical Details
Message-ID:
<41cb08f2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.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:
<41caebfa@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,83d0bed4519bc3d4 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.multimedia References: <41caebfa@newsgroups.borland.com> Subject: Re: Access Violation?! Date: Thu, 23 Dec 2004 10:06:37 -0800 Lines: 34 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: <41cb08f2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103825138 68.69.17.41 (23 Dec 2004 10:05:38 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.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