
Re: Simple program leaking memory  why?
Posted:
May 11, 2013 2:27 AM


Gabe,
In article <kmfks5$bqt$1@smc.vnet.net>, Gabriel Redner <gredner@gmail.com> wrote:
> Hi Joe, > > I don't see how this could be the issue. All of the statements have > semicolons after them, and in any case I've tried changing $HistoryLength > with no effect.
The semicolons prevent printing, not generation.
If you did $HistoryLength=0 early in the computations, with a clean start (exit Mathematica and launch Mathematica) and the problem persists, then it is probably some other cause.
The most general way to figure out what's going on is to divide the notebook into two notebooks (communicating via files if necessary) and see which half leaks. Do this recursively. If neither half leaks, the cause is something in or near the cut point. This approach is modeled on binary search, and is very fast albeit manual.
Joe Gwinn

