INPCamera->GetFrameImage problems

Post Reply
Dustin
Posts: 2
Joined: Wed Dec 16, 2009 7:10 pm

INPCamera->GetFrameImage problems

Post by Dustin »

Hi,
I'm am trying to write a simple app that grabs the raw frame data from a flex V100 camera in c++ and am running into a problem with the GetFrameImage function. Calling this function seems to cause the program to hang or cause an access violation.

The code calling the function looks like this
hr = camera->GetFrameImage(lastFrame,640,480,640,8,buffer);

The camera and frame are both seem to be valid and I can get points from the frame. The buffer has been allocated with enough memory to hold the frame. However, making this call always seems to cause the program to hang our crash. Anyone have any idea what could be causing this?

Thanks
Dustin
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: INPCamera->GetFrameImage problems

Post by Birch »

Have you tried downloading the OptiTrack SDK samples? There are two which demonstrate how to use GetFrameImage.

C++ Win32 command line VC8/2005 Sample
C++ Grayscale Sample

http://www.naturalpoint.com/optitrack/s ... tions.html
Dustin
Posts: 2
Joined: Wed Dec 16, 2009 7:10 pm

Re: INPCamera->GetFrameImage problems

Post by Dustin »

I had tried some of them, but not all. The command line one was very helpful. It turns out that have 'Common Language Runtime Support' enabled (/clr) for compilling causes 'GetFrameImage' to hang or cause access violations. It took me a while to track it down, and I have no idea what the problem is, but that seems to be the source of my problems.
Post Reply