gnichgrd
November 11, 2003, 14:51:58
Hello,
i wanted to render the preview stream into a java component.
Therefore i have implemented a CListener ( as in your callback sample ) and activated its frameReady() method. There i am providing the image Data by copying the MemBuffer pointer to a global pointer.
I'm starting a FrameGrabberSink with eGRAB,
grabber->startLive( false ), because i want to do the rendering myself.
Then i'm rendering the image data into a java component ( Canvas ) overriding its paint() method.
Up to this point everything works well and the preview is rendered into my java component.
The problem is, that every call to grabber->stopLive() after that causes crashes
( Like EXCEPTION_ACCESS_VIOLATIONS detected from Java VM in native code outside ).
It looks like i'm not able to release all the components from the grabber object savely.
What can i do ?
Thanks in advance
gnichgrd
i wanted to render the preview stream into a java component.
Therefore i have implemented a CListener ( as in your callback sample ) and activated its frameReady() method. There i am providing the image Data by copying the MemBuffer pointer to a global pointer.
I'm starting a FrameGrabberSink with eGRAB,
grabber->startLive( false ), because i want to do the rendering myself.
Then i'm rendering the image data into a java component ( Canvas ) overriding its paint() method.
Up to this point everything works well and the preview is rendered into my java component.
The problem is, that every call to grabber->stopLive() after that causes crashes
( Like EXCEPTION_ACCESS_VIOLATIONS detected from Java VM in native code outside ).
It looks like i'm not able to release all the components from the grabber object savely.
What can i do ?
Thanks in advance
gnichgrd