Malloc error “can't allocate region” failed with error code 12. Any idea how to resolve this?

前端 未结 3 2052
一个人的身影
一个人的身影 2020-12-08 15:11

i am getting this error and dont know what to do with that:

AppName(3786,0xa0810540) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can\'t         


        
3条回答
  •  庸人自扰
    2020-12-08 16:05

    Googling will reveal quite a few tutorials on using instruments to understand what is going on with your memory:

    How to debug memory leaks: (tutorial)
    http://www.raywenderlich.com/2696/how-to-debug-memory-leaks-with-xcode-and-instruments-tutorial

    And another:
    Finding Obj-C memory leaks (video)
    http://www.youtube.com/watch?v=R449qEuexNs&feature=related

    *There are many similar questions on stackoverflow you might benefit from.

提交回复
热议问题