Page 1 of 1

GetFrameImage SIGSEGV

Posted: Tue Jan 27, 2009 10:14 am
by davidflam
Hi,

I'm getting a segmentation fault when I call GetFrameImage() inside my program. All method's parameters seem to be properly initialized. I spent some time debugging and discovered that SIGSEV is coming from cameradll!?HorizontalLineFrom8BitSource@BitMap@NaturalPoint@@QAEXHHHPAE@Z(). Any clue on what is happening? If it helps, I'm using QT too, so threads are being used.

Regards,

David

Re: GetFrameImage SIGSEGV

Posted: Tue Jan 27, 2009 4:07 pm
by beckdo
GetFrameImage is a dangerous command because you're passing it a frame buffer and the OptiTrack SDK has to assume you've passed it an appropriately sized and properly allocated memory space. In this case it sounds like you need to check what you're passing in as the frame buffer. If you're requesting a 32 bit image from a V100 for example, you'll want to make sure the frame buffer you're passing in is at least 640x480x4 bytes long.