
Dave Shield writes:
Dave> Sure - it's sensible for the parser to terminate - perhaps Dave> setting a flag so that any further attempt to use the library Dave> routines would fail.
Dave> But it's a stage more drastic to issue an "exit" - so that the Dave> whole application will terminate immediately. It's then got no Dave> chance to tidy up and save any internal state, pop up a dialog Dave> box to report the error back to the user, offer to work with Dave> numeric OIDs instead, or however else the programmer wishes to Dave> handle this.
Yes. There should be a public fatal error handler with a default implementation which calls exit(). There is already a comment in error.c which says that such a feature would be nice to have...
/js -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.