GetFrameImage SIGSEGV

Post Reply
davidflam
Posts: 5
Joined: Mon Jan 12, 2009 11:10 am

GetFrameImage SIGSEGV

Post 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
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: GetFrameImage SIGSEGV

Post 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.
Post Reply