阅读背景:

如何在C ++中检查类中的内存泄漏?

来源:互联网 

I am aware of several other threads that have discussed a similar questions. Also I am aware that one must deallocate all the allocated resources and nothing should be left unaccounted for. The reason I am asking this question is to see if there is a way to automatically detect a memory leak in a class. In particular, I am trying to implement an automated way to detect the leak within the unittest so that future development of that class would be more robust. Since my class is using several other classes within and some DLL's as well, it is difficulat, if not impossible to keep track of the leaks in all of those, so such a unittest may help.I am aware of several other threads that have d




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: