Hi there

I want to avoid that my application gets terminated on uncaught exceptions. I couldn't find any documentation about how to set the abort handler. So it seems that I'm doing this wrong:

In my main C file:

#include ...
#include <zdb.h>

void(*AbortHandler)(const char *error);

void myhandler(const char *error) { fprintf(stdout, "...%s\n", error); }

main () {
AbortHandler = myhandler;
}

But the handler is not used and the program ends:
SQLException: mysql_stmt_fetch -- Incorrect number of arguments for FUNCTION cpr_db.consolidate_occupancy; expected 2, got 1
raised in _next at src/db/mysql/MysqlResultSet.c:209

What's the correct way to set the external AbortHandler in main()?

Cheers
Till