I am working on an application that displays a live video feed and allows the user to pause, rewind, and fast forward while video capture continues. This is similar to a DVR but is used for a different purpose in my app. I am using Microsoft's Stream Buffer Engine to do this. As I set up my capture graph, however, I run into an error that I have been unable to solve for about 6 months. When I call the function:
I get the following error:
Unhandled exception at 0x66674E34 (sbeio.dll) in ConsoleApplication1.exe: 0xC0000005: Access violation writing location 0x00000018.
When I check the HRESULT values in my previous lines of code, I determined that the IStreamBufferSink object was initialized correctly, so I don't think that's the problem.
I have also called
in order to remove the administrator requirement so I don't believe that is the issue either.
I have tested this on multiple different computers on both Windows Vista and Windows 8, so it doesn't appear to be a problem associated with a specific hardware or operating system.
Interestingly enough, I have gotten this function to succeed twice, both times were immediately after my computer restarted from installing an update or new program.
It appears that the error is occurring in Microsoft's sbeio.dll. How then can I fix the problem if it isn't even occurring directly in my code?