|
From: | Heinrich Schuchardt |
Subject: | Re: [Help-glpk] Gplk and exception handling |
Date: | Tue, 18 Mar 2014 21:37:08 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
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*
[Prev in Thread] | Current Thread | [Next in Thread] |