Open GoogleCodeExporter opened 9 years ago
Which version of the framework is used?
I just checked the 2.2.4 version on x86 with similar configuration you have -
it works fine.
Original comment by andrew.k...@gmail.com
on 4 Jul 2012 at 11:08
I am using 2.2.4
Original comment by stephans...@gmail.com
on 4 Jul 2012 at 11:12
_WebcamDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
int num = 0;
foreach (FilterInfo info in _WebcamDevices)
{
SWebcamDevice device = new SWebcamDevice {
ID = num,
Name = info.Name,
MonikerString = info.MonikerString,
Capabilities = new List<SCapabilities>()
};
num++;
VideoCaptureDevice tmpdev = new VideoCaptureDevice(info.MonikerString);
for (int i = 0; i < tmpdev.VideoCapabilities.Length; i++ )
{
SCapabilities item = new SCapabilities
{
Framerate = tmpdev.VideoCapabilities[i].FrameRate,
Height = tmpdev.VideoCapabilities[i].FrameSize.Height,
Width = tmpdev.VideoCapabilities[i].FrameSize.Width
};
device.Capabilities.Add(item);
}
}
Commenting out the for loop, would make it run on x86 as well but I need to
grab the Videocapabilities for all devices.
Original comment by stephans...@gmail.com
on 4 Jul 2012 at 11:23
Can not reproduce. There is no memory leak as you claim. Your camera simply
does not implement IAMVideoControl interface. But if you have a look at
framework sources, then you can find that part is protected with try/catch.
Try debugging with framework sources ...
Original comment by andrew.k...@gmail.com
on 4 Jul 2012 at 11:30
I already tried to debug with framework sources, but could not catch that error
yet. It's really strage as it's running on x64.
Original comment by stephans...@gmail.com
on 4 Jul 2012 at 11:33
Original issue reported on code.google.com by
stephans...@gmail.com
on 4 Jul 2012 at 10:04