Re: FastMM - Expected memory leaks



Hi Ulf,

> aCount the (optional) expected number of leaks. I have chosen to use
> aClassName as a String instead of TClass as I assume that a lot of the

I like this idea a lot.... definitely worth implementing.

> Chosing the first version would make it relatively easy to detect if a
> leaks is an expected leak. Just walk the stack at the time of the leak and
> check if the given address is a return address on it.

FastMM4 only stores stack traces in FullDebugMode (Storing stack traces is
slow and uses a lot of extra memory.) Both your suggestions seem to require
stack traces. The leak checking has to work in performance mode as well, or
it will be less useful than it is now.

Regards,
Pierre


.



Relevant Pages

  • Re: stl::string memory leak associated with polymorphism
    ... only the default destructor of Base ... debug heap. ... Thus I have a 32 bytes leak per call. ... When the string "0123456789012345" is less than 16 bytes long, ...
    (microsoft.public.vc.stl)
  • Re: CString over LPARM?
    ... Reaching out from the thread to theApp bothers me. ... Knowing theApp has an m_pDlg member ... There should be no real need to make a copy of the string; ... There is only one memory leak left. ...
    (microsoft.public.vc.mfc)
  • Simple memory leak
    ... I reproduced a very simple memory leak problem below. ... Periodically I make a new string ... slTmp: TStringList; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Why does this code generate memory leaks?
    ... Does the leak detection ... Item(string title) ... Book(string title, string author, int nPages): ...
    (microsoft.public.vc.language)
  • Re: Runtime.getRuntime() Process Memory Leak Help
    ... mike pitoniak wrote: ... should rewrite the code to call starton each SysExecCmdThread object ... > the leak. ... > public String executeSystemCommand(String cmd, ...
    (comp.lang.java.programmer)