I am trying to use AForge.NET in my application as a webcam capture source.
Everything runs great in x64, but x86 has some problems:
When calling this
int i = tmpdev.VideoCapabilities.Length;
it will lead to an "AccessViolationException - Attempted to read or write
protected memory. This is often an indication that other memory has been
corrupted" in my program. There seems to be a memory leak affecting only the
x86 version of AForge.Net. It is not the device creation but requesting the
Length of the VideoCapabilities array.
Unable to cast COM object of type ‘System.__ComObject’ to interface
type’AForge.Video.DirectShow.Internals.IAMVideoControl’. This operation
failed because the QueryInterface call on the COM component for the interface
with IID ‘{6A2E0670-28E4-11D0-A18C-00A0C9118956}’failed due to the
following error: No such interface supported (Exception from HRESULT:
0×80004002)
Original issue reported on code.google.com by stephans...@gmail.com on 4 Jul 2012 at 10:04
Original issue reported on code.google.com by
stephans...@gmail.com
on 4 Jul 2012 at 10:04