Question: Resetting memory and garbage collection?

Hi

Does anyone know how to reset the memory during a large number of loops? I've read jet's post on this subject and someone mentioned garbage collection but I'm not clear how to go about doing this.

Basically what I want to do is after every 10 loops or so export the answers, keep the few variables I need and then reset the memory (equivalent to closing down maple & reopening).

Is it possible to code this so it does it at run time? At the moment my memory usage just keeps on increasing eventually resulting in an error message about kernel loss and the program terminating. I don't need to be/ shouldnt be using all that memory as the results from 1 loop have no bearing on the results in the 2nd.

 

thanks

 

Please Wait...