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
INPCamera->GetFrameImage problems
Re: INPCamera->GetFrameImage problems
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
C++ Win32 command line VC8/2005 Sample
C++ Grayscale Sample
http://www.naturalpoint.com/optitrack/s ... tions.html
Re: INPCamera->GetFrameImage problems
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.