PDA

View Full Version : Memory Allocation



Unregistered
September 10, 2003, 10:40:12
Hello


I try to allocate memory by following:

m_pMemBuffColl = m_pGrabber->newMemBufferCollection( 5 );

However, it fails!

Error Message: Debug Assertion Failed

What's wrong





Thank you

Stefan Geissler
September 11, 2003, 09:26:15
Hello,

did you set the sink type before creating the memory buffers?
grabber->setSinkType( FrameGrabberSink( FrameGrabberSink::tFrameGrabberMode::eSNAP, DShowLib::eRGB24) );

If not, the class library does not now, how much memory to allocate.