You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Jim Reitz <je...@home.com> on 2000/07/21 03:52:01 UTC

Borland CBuilder4 bug causes "Assertion failed" message in file xx.cpp

Thanks to some folks at Borland/Inprise, I have found the cause of the wierd
errors I had been getting:

"Assertion failed: !"what?", file xx.cpp, line 756"

This message occurs whenever methods in XMLScanner.cpp attempts to throw an
exception of type const XMLErrs::Codes, or const XMLValid::Codes.  These are
enums with class scope.  With Borland CBuilder4, these exceptions do not get
caught by the statements:
catch( const XMLErrs::Codes ), or
catch( const XMLValid::Codes )
respectively, as they should.

The easiest work around is to modify XMLScanner.cpp such that all the catch
statements that match the two above, are replaced with ones that don't have
the "const" modifier.

In other words, a statement like:
catch( XMLErrs::Codes ) or catch( XMLValid::Codes ) works just fine.

This is a bug in Borland CBuilder4, and it does not appear in Borland
CBuilder5.

Jim Reitz
jereitz@home.com