c++ doulbe pointer help

Dell / Precesion 690
February 22, 2011 at 12:18:29
Specs: windows 7, 2 GB

I need help in returning a double pointer. I'm using StarTeam API and it has a function CreateView(). This function returns a double pointer as part of its parameter list. I'm getting the following error message when I step over my code.

Unhandled exception at 0x00406f7e in setStarTeamView.exe: 0xC0000005: Access violation reading location 0x00000000.

IStView** starTeamFNC::createReleaseView(IStView* getView)
alreadyExists = false;
IStView** releaseViewName;
IStViewFactory* makeReleaseView = NULL;

// IStViewFactory::CreateView
// HRESULT CreateView(IStView** result)
// result: [return val][out]

hr = makeReleaseView->CreateView(&releaseViewName); // <- error at this point
return (*releaseViewName);


See More: c++ doulbe pointer help

Report •

February 22, 2011 at 17:32:17
hr = makeReleaseView->CreateView(&releaseViewName); // <- error at this point
You're passing the address of a pointer to a pointer. Have you tried passing the address to a pointer instead?

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question