Thanks for the reply. I tried your version but the result is the same.
The error :
An unhandled exception of type 'System.StackOverflowException' occurred in Magick.NET.Wrapper-x86.dll
My C# code (sScript contains the xml)
The exeption is thrown by oScript.Execute()
The error :
An unhandled exception of type 'System.StackOverflowException' occurred in Magick.NET.Wrapper-x86.dll
My C# code (sScript contains the xml)
The exeption is thrown by oScript.Execute()
// Load resize script and execute it
MagickScript oScript = new MagickScript(new MemoryStream(Encoding.UTF8.GetBytes(_sScript ?? "")));
// Event that will be raised when the script wants to read a file
oScript.Read += OnScriptRead;
// Execute the script
oScript.Execute();