Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

access violation in copyTo

$
0
0
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?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>