Ask Your Question

Revision history [back]

crash in cv::Mat release function

hi, i'm using opencv_world341.dll, opencv_core2413.dll and opencv_imgproc2413. to simplify the code i just write a function that reads an image and does nothing. See the simple function below void f() { cv::Mat src = cv::imread("D:\image.jpg"); }

while f() ends the destructor of src is called and crashes in the function Mat::release() while calling to deallocate(); Why? How can i fix it?