I followed this Documentation and tried to create a video sample using a few bitmapImages . However after the below line there is a Exception.
The Bitmap Image is sent to the WriteFrame() function of format byte [] array format which is similar to VideosourceFrame but in DWORD format in the tutorial.
pSinkWriter->WriteSample(streamIndex, spSample));
The Exception after this line is
Exception thrown at 0x00007FFCE9A9DF33 (ntdll.dll) in Movie.exe: 0xC0000005: Access violation writing location 0x0000000000000024.
The run time values of the writer, sample, buffer : just before the Exception
callstack after the call to Writesample
Any leads would be helpful.
User contributions licensed under CC BY-SA 3.0