Debug Assertion failed when debugging fx parser in VS 2008
Posted: 2010-05-17T02:30:13-07:00
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
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