Click here to Skip to main content
15,847,583 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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:

IStreamBufferSink->LockProfile(NULL);

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

IStreamBufferConfigure3->SetNamespace(NULL);

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?
Posted
Comments
zlogdan 27-Jun-13 11:27am    
Please post more relevant code here, what happens if you initiate IStreamBufferSink with a value different from NULL ? Does your code to execute it is within a try catch statement ?Also, have you tried to allocate this object statically ? What compiler are you using ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900