Re: Looks like memory leak

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 10/14/04


Date: Thu, 14 Oct 2004 10:26:33 -0400


"German" <german.koninin@crmDASHworldwideDOTnet> wrote in message
news:eDvDqcfsEHA.2556@tk2msftngp13.phx.gbl
> The problem is that memory is not reusin, but growing. Each time I
> run my method, each time it is groing for about 150k.

Show some code. clear() does not leak. If there's a memory leak, it's
elsewhere. E.g., what are you storing in this vector? Are you storing
pointers to memory allocated on the heap, and expect the vector to
deallocate them? Or maybe a class that does not clean up properly in its
destructor?

-- 
With best wishes,
    Igor Tandetnik
"On two occasions, I have been asked [by members of Parliament], 'Pray, 
Mr. Babbage, if you put into the machine wrong figures, will the right 
answers come out?' I am not able to rightly apprehend the kind of 
confusion of ideas that could provoke such a question." -- Charles 
Babbage 


Relevant Pages

  • Re: performance and memory usage.
    ... you're just storing a lot of data. ... 1- Is there a more efficient way of storing this in memory, ... The only difference is that in Java, objects carry an additional 8 bytes ... You should, ideally, use a database for storing large data sets. ...
    (comp.lang.java.programmer)
  • aspnet_state.exe Internals Info Needed
    ... I noticed when storing large amounts of information in the StateServer ... Service that this does not increase in size, the worker process itself seems ... I thought the State Server actually stored the session data itself, ... seem from my example that this is not the case and that the memory space ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: A challenging file to parse
    ... algorithm problem and found a Orun-time and Omemory solution, ... Do the same thing, but when storing in an array, store it at ...
    (comp.lang.c)
  • Re: A challenging file to parse
    ... memory and I see no strategy where I can hold a subset of lines in ... this time ignoring the first 0.5MB from each ... line, storing the next 0.5MB, and ignoring the tails. ... Write that second batch out, rewind, rinse, and repeat. ...
    (comp.lang.c)
  • Re: Security of data in memory
    ... > I have a unix program that reads in an encrypted file, decrypts it and ... > prior to exiting, not storing any of the data in a temporary file, etc. ... Storing it "in memory" risks having it written out to swap, ...
    (SecProg)