help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Determining if glp_error_hook is set


From: glpk xypron
Subject: [Help-glpk] Determining if glp_error_hook is set
Date: Sun, 07 Mar 2010 20:47:07 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]