How to avoid memory leak?

Asked by Bloodsword Hector

Report
in progress 114
6 Answers 179 views

Leave a reply to Bloodsword Hector : avoid memory leak


Answers ( 6 )

  1. The auto_ptr template class is designed to help manage memory in a semi-automatic way and prevent memory leaks when unexpected events such as exceptions would
    Read More

    Ratings : 71 %   

      
  2. Q: What is a memory leak? A: The failure to properly deallocate memory that was previously allocated. Q: What are the consequences of memory leaks? A
    Read More

    Ratings : 68 %   

      
  3. Here are two classes that allocate resources, the first class needs to implement a destructor and Dispose, but the second class doesn't need to.
    Read More

    Ratings : 26 %   

      
  4. Microsoft VC++ in debug mode shows memory leaks, although it doesn't show where your leaks are. If you are using C++ you can you can always avoid using new …
    Read More

    Ratings : 71 %   

      
  5. In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in such a way that memory
    Read More

    Ratings : 56 %