Efficient C ++: Resource Management

  C ++ resource leak has been persistent problem, especially in an embedded environment, a little bit of resource leaks, coupled with a long run they will cause the program to crash, this problem is very difficult to locate, irregular sporadic. One way to solve the problem is to use a specific tool to check memory leaks, the advantage of simple, direct function to find the leak, the disadvantage is recurring, long time, different ways to use different tools, not uniform in private platform and compiler on may not be available. Another solution is to carry on in the development of all resource management, problem-solving resource leak fundamentally, this chapter illustrates a method of resource management.

 

Objects to manage resources

https://www.cnblogs.com/chusiyong/p/11295230.html

 

Guess you like

Origin www.cnblogs.com/chusiyong/p/11448516.html