-
Notifications
You must be signed in to change notification settings - Fork 122
Description
In WPF app I made VideoCaptureElement named 'camVideo'. In the code I do:
camVideo.VideoCaptureDevice = MultimediaUtil.VideoInputDevices[camIdx];
Previously this program worked, but a few week later I tried to check function again and... it crashes! Inner exception is:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. System.Exception {System.AccessViolationException}
Stack trace:
at DirectShowLib.ICaptureGraphBuilder2.RenderStream(DsGuid PinCategory, DsGuid MediaType, Object pSource, IBaseFilter pfCompressor, IBaseFilter pfRenderer)
at WPFMediaKit.DirectShow.MediaPlayers.VideoCapturePlayer.SetupGraph() in c:\Dev\SideUtils\WPF-MediaKit-master\Source\DirectShow\MediaPlayers\VideoCapturePlayer.cs:line 369
at WPFMediaKit.DirectShow.MediaPlayers.VideoCapturePlayer.Play() in c:\Dev\SideUtils\WPF-MediaKit-master\Source\DirectShow\MediaPlayers\VideoCapturePlayer.cs:line 229
at WPFMediaKit.DirectShow.Controls.MediaElementBase.b__86_0() in c:\Dev\SideUtils\WPF-MediaKit-master\Source\DirectShow\Controls\MediaElementBase.cs:line 562
One of googled issues was... second monitor! (and this is exactly what changed - I got second LCD). But I cannot believe library so stupidly crashes on one of the popular config. Any ideas?