AForge.NET Framework is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence - image processing, neural networks, genetic algorithms, machine learning, robotics, etc.
Hi all
i get AccessViolationException occurred in AForge.Video.FFMPEG.dll .
it occurs randomly anytime between app start to 30mins.
even try catch block doesn't work. i'm running on x86 with .net framework v4.6 in C++/Cli
An unhandled exception of type 'System.AccessViolationException' occurred in AForge.Video.FFMPEG.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Code:
VideoFileWriter ^writer = gcnew VideoFileWriter();
private: System::Void Video_Recorder_Tick(System::Object^ sender, System::Timers::ElapsedEventArgs^ e)
{
Bitmap^ save = ConvertMatToBitmap(image); //function to convert opencv's Mat to .net's Bitmap
if(writer!= nullptr)
writer->WriteVideoFrame(save);
delete save;
}
private: Void load_VideoWriter()
{
writer->Open("C:/video.avi", 640, 480, 10, VideoCodec::Default);
}
Hi all i get AccessViolationException occurred in AForge.Video.FFMPEG.dll . it occurs randomly anytime between app start to 30mins. even try catch block doesn't work. i'm running on x86 with .net framework v4.6 in C++/Cli
Code:
More Details here
is there a way to stop this error? Thanks