Each initialized problem handle (e.g., by e04rac
) should be deallocated to avoid memory leaks. Therefore, e04rzc
should be called on all the handles which are no longer needed, typically after obtaining results from the solver. Please note that passing a handle which has not been properly initialized might cause unpredictable behaviour, including a crash of your program. See Section 4.1
in the E04
Chapter Introduction for more details about the NAG optimization modelling suite.
Background information to multithreading can be found in the Multithreading
for links to all the examples in the suite.