help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] glpk 4.57 release information


From: Andrew Makhorin
Subject: Re: [Help-glpk] glpk 4.57 release information
Date: Mon, 09 Nov 2015 11:08:33 +0300

> There is one problem though: the new code does not reset the error 
> indicator to 0 before calling err_hook(). 

The error indicator is set to 0 on initializing glpk environment; see
the routine glp_init_env in glpk/src/env/env.c.

> So even if the error hook uses 
> longjmp() to continue execution, the error state remains set.
> 

If glp_error is called and your hook routine performs longjmp to prevent
aborting, you should *not* call glpk routines until the glpk environment
is reinitialized as Heinrich suggests. 

The glpk reference manual says (6.1.13): 
        If the hook routine returns, the application program is
        abnormally terminated. To prevent abnormal termination the hook
        routine may perform a global jump using the standard function
        longjmp, in which case the application program *must* call the
        routine glp_free_env.





reply via email to

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