The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 114
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


In article <kmfks5$bqt$>, Gabriel Redner
<> 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.