I changed the following code.
IStreamBufferConfigure3 config = (IStreamBufferConfigure3)new StreamBufferConfig();
to
IStreamBufferConfigure2 config = (IStreamBufferConfigure2)new StreamBufferConfig();
and commented out the following lines
//if (wp.IsInRole(WindowsBuiltInRole.Administrator))
//{
// hr = config.SetNamespace("Global");
// DsError.ThrowExceptionForHR(hr);
//}
//else
//{
// hr = config.SetNamespace(null);
// DsError.ThrowExceptionForHR(hr);
//}
I got this error.
Attempted to read or write protected memory. This is often an indication that ot
her memory is corrupt.
I tried to debug the code but I get the message:
Debugger detected - Plase close it down and restart.
This message pops up on line 378 in SBEHelper.cs ( hr = graph.Connect(outPin, maPin);)
Also, here is the output:
C:\Documents and Settings\Danny>"C:\Documents and Settings\Danny\My Documents\VS
Projects\toDVRMS\todvrmsgui\bin\Debug\todvrms.exe" "C:\fg.mpg" "c:\video.dvr-ms
" -t "hi" -v -d
Get stream pin
Attempted to read or write protected memory. This is often an indication that ot
her memory is corrupt.
arg[0] = C:\fg.mpg
arg[1] = c:\video.dvr-ms
arg[2] = -t
arg[3] = hi
arg[4] = -v
arg[5] = -d