Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  About .NET memory leak--GC,Delegate and weak reference

Memory leak is always a headache for many programmers, the situation is much better now in some languages which have GC mechanism, but still we may face some memory leak issues when we write programs.1. What is memory leak?Memory leak is not that the memory chip is broken. In short, it's about that the memory requested is not released at the expected time as an expect way.So what is the expected time? This is very important for you to understand memory leak. If the time an object taking the memory is the same as the time the program runs, but you don't expect it to be like this, then memory le...

6,012 0       .NET GC REFERENCE COUNTING MARK AND SWEEP WEAK REFERENCE


  C++ 11 Memory Management

Enterprise development and networking specialist Stephen B. Morris illustrates how to handle a classic C/C++ problem by using the new features in C++ 11 in conjunction with more established techniques.Memory management has always been one of the most error-prone areas of C++. The same is true of C. One of the strengths of managed languages, such as Java and C#, is their support for automatic garbage collection. Garbage collection still isn't a feature of C++ 11, so we must still be careful in our memory management. However, there is some good news: C++ 11 has added features that strengthen the...

4,727 0       MEMORY MANAGEMENT MEMORY LEAK C++ 11 GC