You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we creat Mat<TElem, TInherit> fom anothe Mat and then dispose one - memory dealoceted two times:
1 - when disposing Mat<TElem, TInherit> class
2 - when disposing sourceMat (when GC working)
The text was updated successfully, but these errors were encountered:
Mat newm = img; //work well
newm.Release();
img.Release();
//Mat newm = img.Clone(); //work well
//img.Release();
//newm.Release();
//Mat newm = new Mat(img); //throw exception when return
//Mat newm = new Mat(img.Clone()); //throw exception when return
return;
var sourceMat = new Mat(10, 20, MatType.CV_64FC1);
var doubleMat = new MatOfDouble(sourceMat);
sourceMat = null;
doubleMat.Dispose(); // after it when GC will working program broken
Hi.
When we creat Mat<TElem, TInherit> fom anothe Mat and then dispose one - memory dealoceted two times:
1 - when disposing Mat<TElem, TInherit> class
2 - when disposing sourceMat (when GC working)
The text was updated successfully, but these errors were encountered: