Hello Heinrich,

Rabih talked about garbage collection. I'd like to know if GLPK for Java
handles garbage collection and automatically deletes the problem object in
C (either in case of exception or in a normal run) or if it must be done by
hand.
If GLPK for Java handles garbage collection, could you tell me since which
version?
Thanks!

*Sylvain Fournier*
 Analista de Pesquisa Operacional
*48 3239-2423*
WPLEX Software Ltda.
Rod SC 401 no. 8600 Corporate Park bloco 5 sala 101
88050-000 Santo Antônio de Lisboa, Florianópolis SC +55 48 3239-2400
wplex.com.br
[image: WPLEX]



2014-03-10 14:29 GMT-03:00 Heinrich Schuchardt <[email protected]>:

> Hello Rabih,
>
> please have a look at GLPK for Java to see how a decent wrapping can be
> done.
> http://glpk-Java.sf.net
>
> The error handling is in swig/glpk.i
>
> It makes use of the error hook function.
>
> See also
> http://en.wikibooks.org/wiki/GLPK/Language_Bindings
>
> Best regards
>
> Heinrich Schuchardt
>
> Am 10.03.14 um 18:12 schrieb Rabih Chaar
>
> > Hello all,
> >
> > I have a question concerning glpk and exception handling.
> >
> > I am mainly wrapping glpk to offer its functionalities in an object
> language.
> >
> >
> >
> > The resources like problems are wrapped in objects with a dispose
> method. This is normally called when object is garbaged by gc.
> >
> >
> >
> > Looking at error.c, raising an exception calls the registered hook via
> glp_error_hook, and calls afterward abort and exit. If the hook doesn't
> raise immediately an exception, the runtime will crash via the abort call.
> >
> >
> >
> > Is this behavior deliberate?
> >
> > Why not call abort and leave that to the calling function language to
> decide when to throw?
> >
> >
> >
> > Thanks in advance for your help.
> >
> >
> >
> > Rabih Chaar
> >
> > _______________________________________________
> >
> > Help-glpk mailing list
> >
> > [email protected]
> >
> > https://lists.gnu.org/mailman/listinfo/help-glpk
>
> _______________________________________________
> Help-glpk mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-glpk
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to