Memory leak

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • antani

    #1

    Memory leak

    Every time that I call a function, time for execution and memory
    allocation program increase.
    I use stl vector, and 5 array c++ style and I remove them in
    destructor.
    Can you suggest me a solution for debugging memory leak?

  • Chris Dollin

    #2
    Re: Memory leak

    antani wrote:
    Every time that I call a function, time for execution and memory
    allocation program increase.
    I use stl vector, and 5 array c++ style and I remove them in
    destructor.
    Can you suggest me a solution for debugging memory leak?
    Post C++ questions in a C++ newsgroup.

    --
    Chris Dollin
    RIP John "BNF, Fortran, FP" Backus 3Dec1924 - 17Mar2007

    Hewlett-Packard Limited registered no:
    registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

    Comment

    • Clever Monkey

      #3
      Re: Memory leak

      antani wrote:
      Every time that I call a function, time for execution and memory
      allocation program increase.
      I use stl vector, and 5 array c++ style and I remove them in
      destructor.
      Can you suggest me a solution for debugging memory leak?
      >
      A static checker like lint may help. If you can run your app in a
      profiler that will also help.

      Comment

      • Flash Gordon

        #4
        Re: Memory leak

        antani wrote, On 23/03/07 15:58:
        Every time that I call a function, time for execution and memory
        allocation program increase.
        I use stl vector, and 5 array c++ style and I remove them in
        destructor.
        Can you suggest me a solution for debugging memory leak?
        We deal with C here, you probably want comp.lang.c++. When posting there
        you should provide a small complete compilable example exhibiting the
        problem.
        --
        Flash Gordon

        Comment

        • Cameron Laird

          #5
          Re: Memory leak

          In article <o6bdd4x12r.ln2 @news.flash-gordon.me.uk>,
          Flash Gordon <spam@flash-gordon.me.ukwro te:
          >antani wrote, On 23/03/07 15:58:
          >Every time that I call a function, time for execution and memory
          >allocation program increase.
          >I use stl vector, and 5 array c++ style and I remove them in
          >destructor.
          >Can you suggest me a solution for debugging memory leak?
          >
          >We deal with C here, you probably want comp.lang.c++. When posting there
          >you should provide a small complete compilable example exhibiting the
          >problem.

          Comment

          Working...