c# - An unhandled exception of type 'System.AccessViolationException' EmguCV -
i'm getting "an unhandled exception of type 'system.accessviolationexception'as given below in code. video file have given 91 mb of size , ram 4 gb (os - windows 32 bit)
an unhandled exception of type 'system.accessviolationexception' occurred in emgu.cv.dll
additional information: attempted read or write protected memory. indication other memory corrupt.
private static list<image<bgr, byte>> getvideoframes(string filename) { list<image<bgr, byte>> image_array = new list<image<bgr, byte>>(); capture _capture = new capture(filename); bool reading = true; while (reading) { image<bgr, byte> frame = _capture.queryframe(); if (frame != null) { image_array.add(frame.copy()); } else { reading = false; } } return image_array; }
can issue video file size? can fix issue?
Comments
Post a Comment