I am also getting the error "An unhandled exception of type 'System.StackOverflowException' occurred in Magick.NET-x86.dll", I am using Visual Studio 2010, my C# MVC project platform target is x86 and successfully builds.
I have tried multiple pdf files and even created a few from scratch to ensure no possible file corruption.
Can someone please advise as how to resolve this issue?
using (var images = new MagickImageCollection())
{
var pdfSettings = new MagickReadSettings { FrameIndex = 0, FrameCount = 1 };
images.Read(file, pdfSettings);
}
I have GhostScript (gs916w32.exe), Magick.NET-7.0.0.0011-Q16-x86-net40-client and Visual C++ Redistributable for Visual Studio 2012 Update 4 (vcredist_x86) installed but still this issuer persists when trying to read a pdf file.I have tried multiple pdf files and even created a few from scratch to ensure no possible file corruption.
Can someone please advise as how to resolve this issue?