Memory Leak

From: Jerry (jerry_at_commercialbase.com)
Date: 10/30/03


Date: Wed, 29 Oct 2003 17:03:43 -0700

Hi All,
I've written a utility that runs for many hours. It loops through a dataset
and does a lot of number crunching.

I was very careful that the String lists that I use are always freed after
each loop and the Access database used for temporary tables is refreshed and
rebuilt each time. In my estimation, each loop does the same amount of work
no matter how many loops are required to complete the dataset, so as long as
all resources are freed each time, it should go on forever. However, when
the dataset is long it runs out of system resources. Does anyone know how I
can shop this memory leak?

I've never come across this problem before so I'm not sure how to fix it.



Relevant Pages

  • Re: how fast is object-oriented Python code?
    ... > than the procedural C or Fortran equivalent, unless one is careful. ... > what extent is this true with OO and non-OO Python? ... 1000000 loops, best of 3: 0.437 usec per loop ...
    (comp.lang.python)
  • Re: sum and for loop too slow...
    ... so you should be careful about what you do. ... You sum up 27*100000 times more or less the same, ... Ideally I'd like to get rid of the 'for' loops as these are taking ...
    (comp.soft-sys.matlab)