Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: System.AccessViolationException when comparing two images

$
0
0
dlemstra,

I removed the guards and installed the latest Magick.Net package using NuGet (verified update).

I am no longer getting the AccessViolationException on MagickImage.Compare(MagickImage), but I am now getting an AccessViolationException on MagickImage.Compare(MagickImage, ErrorMetric, MagickImage).
///<summary>/// Compare the actual to the expected with resulting comparison image and error info///</summary>publicvoid Compare()
        {
                // No longer throws AccessViolationException
                Error = Actual.Image.Compare(Expected.Image);
                // Throws AccessViolationException
                Actual.Image.Compare(Expected.Image, ErrorMetric.Fuzz, Comparison.Image); 
        }

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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