Skip to content

Library crashes when tries to show camera stream. #94

@WrongBit

Description

@WrongBit

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions