AccessViolationException at OpenCvSharp.NativeMethods.videoio_VideoCapture_operatorRightShift_Mat
See original GitHub issueHi,
I capture live tv stream with`videocapture.
I use this version 3.2.0.20170110
Sometimes my app crash with this error:
Application: AdsDetectionWF.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at OpenCvSharp.NativeMethods.videoio_VideoCapture_operatorRightShift_Mat(IntPtr, IntPtr) at OpenCvSharp.VideoCapture.Read(OpenCvSharp.Mat) at AdsDetectionWF.MonitoringChannel.Start(Boolean, Boolean) at AdsDetectionWF.Form2+<>c__DisplayClass2_1.<button2_Click>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef) at System.Threading.Tasks.Task.ExecuteEntry(Boolean) at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() `
Any suggestion ? thx for your help !
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
24 hours with your code: it seems to run without crash… It sounds good. I’ll continue my test.
I have changed my code and i have “played” with opencv_ffmeg320 and OpenCvSharpExtern.dll x86 and x64 version … (My app is build in x86 and the 2 dll above is now x64 version in the parent directory, i don’t know if it’s correct ?)
Thanks for your help shimat !
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.