Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Simple program leaking memory - why?
Replies: 4   Last Post: May 13, 2013 3:47 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Joseph Gwinn

Posts: 112
Registered: 2/23/05
Re: Simple program leaking memory - why?
Posted: May 11, 2013 2:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.