I am reading an image from IPCamera (using VLC API). I store this image in cv::Mat
called ipCameraImage
. Then I am doing deep-copy for this Mat into another Mat using:
auto frame=ipCameraImage.clone();
Everything seems fine. However, after around 1 hour of successful streaming, I got error access violation
in the cloning process exactly inside copyTo
function
.. at the line:
memcpy( dptr, sptr, len );
It says that dptr
point to NULL
!
I am sure that ipCameraImage
is not empty and it is contains valid image (I debug it and show it using ImageWatch tool with VS.NET).
It seems like a bug for me.. is it? Any suggestion?