iOS Development _ The difference between memory leaks, memory overflows, and wild pointers

Source: Internet
Author: User

Today, there is an interview in Dalian, was asked the memory leak and the difference between the pointer pointing, his answer is not very good, specifically back to check the information, in blog post summary of experience, welcome correction.

memory leak: refers to the heap area, alloc or new created an object, but did not put in the automatic release pool, or no free object, causing the memory has been occupied, in other words, there is no pointer to the memory, then popular point, opened up a space, This memory is not found until it is released, causing a memory leak. This memory will not be released until the program is finished running.

Wild pointer: A pointer to an object that has been delete, or a restricted area that has not been applied for access, causes the wild pointer to point and directly collapses the program.

For the time being only so much, if there is a new understanding and then add to the above.

Finally, the sentence, Daniel smiled, mutual excitation one another, welcome criticism.

iOS Development _ The difference between memory leaks, memory overflows, and wild pointers

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.