Page 1 of 1

Debug Assertion failed when debugging fx parser in VS 2008

Posted: 2010-05-17T02:30:13-07:00
by fabrizio108
When i debug the fx parser in VisualStudio 2008, i get the following error: Debug Assertion Failed! Expression (unsigned)(c+1)<=256. This is due to negative values with which is filled the vector "subexpression" in function FxEvaluateSubexpression(file /magick/fx.c).
To avoid this little problem is will be enough to use this routine to fill the vector, at the beginning of the function, with null values:

for(i = 0; i < MaxTextExtent; i++)
{
subexpression = 0;
}

In this way the assertion does't fail and the debug is possible. Also avoid random filled vector at the beginning of the function.

Best Regards

Re: Debug Assertion failed when debugging fx parser in VS 20

Posted: 2010-05-17T05:31:03-07:00
by magick
Thanks for the problem report. We'll get a patch into ImageMagick 6.6.1-10 Beta by sometime tomorrow.