Le Wireless: A new platform for customized enterprise mobile marketing

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.