malloc: *** error for object 0x165060: pointer being freed was not allocated?

后端 未结 6 1021
温柔的废话
温柔的废话 2020-12-31 10:18

I have an application in which i have some videos and audios and some inapp purchases.all r great in simulator and working perfectly.But yesterday i have created an applicat

6条回答
  •  不知归路
    2020-12-31 10:54

    Please test the program for memory leaks,also check autoreleases and whether you are releasing objects properly or not.Also we need to check whether a released object has a memory allocated or not.You also need to be careful regarding autorelease,because accidentally we might release an array or a string or any object that is already autoreleased...

    Here are some of the tips to trace out the exact problem:

    1. You can test for leaks by analyzing your project(click shift+command+k)

    2. Use instruments tool i.e. running for leaks

    3. Enable NSZombie in Xcode,procedure can be found here

    Hope it helps and works!

提交回复
热议问题