#39 Change asserts to error handler mechanism

open
nobody
C (34)
5
2012-12-12
2009-08-06
Joseph Walters
No

When ingesting a nitf file that had more content in a TRE than expected the following error was reported: Assertion fails: length > 0 Field.c line 63. The failed assertion causes an abort of the calling program. Can asserts be changed to some other error handling mechanism?

Discussion

  • Tom Zellman
    Tom Zellman
    2010-11-06

    This is fixed. Field.c no longer asserts. I believe the only asserts left in the library are for dire scenarios. I'll keep this open though since having an error handling mechanism would be an improvement.