Hello Sylvain,

if an internal error occurs in GLPK for Java it calls glp_free_env() before throwing GlpkException. This frees (and invalidates) all memory allocated by the GLPK library.

The exception will not free memory allocated by
- new_doubleArray
- new_intArray

For these you have to call the delete methods
- delete_doubleArray
- delete_intArray.

Garbage collection will neither free said arrays nor any memory assigned by the GLPK library.

Best regards

Heinrich Schuchardt


On 17.03.2014 14:50, Sylvain Fournier wrote:
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*


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

Reply via email to