Hello Andrew,

in glpk-java I use the glp_error_hook. I set it before calling
a function and use setjmp.

This is what my error handler looks like:

void glp_java_error_hook(void *in) {
    /* free GLPK memory */
    glp_free_env();
    /* safely return */
    longjmp(*((jmp_buf*)in), 1);

When in a callback a glp_functions fails this results
in the wrong long jump being executed because the glpk-java
wrapper library is not aware of the callback.

Is there a way to determine if the error hook function is
already set or not?

I am missing functions to retrieve the error hook function and
the info which could be used to build a chain of error
handlers.

Best regards

Xypron



-- 
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02


_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to