LINJM 2014_05_23
Resolving memory leak issues
Under VS2010 Debug mode, click Run, then exit, and then the memory leak information (as shown) appears in the Output box.
Analysis: After the main is new , there is no delete corresponding variable, so it is obvious to delete when not in use Drop this variable. However, there is a problem as shown in:
My Code modification location is as follows:
I commented out the red underline part of the problem, and then discussed the analysis only found that Pbim now assigned to the padjustmentlyinfo, both now point to the same memory space, when I Delete the pbim after the padjustmentlyinfo also can not be used, this is a problem. Therefore, I am in the foreign, just under the red underline the comment off the line in the deletion of this space, this solves the memory leak problem.
Transfer to others experience:
————————————————————————
This address: http://blog.csdn.net/linj_m/article/details/26703859
More resources please follow blog: linjm-machine vision Weibo: Lin Jianmin-Machine Vision