我正在使用phonegap,目前我有一个带有php 和javascript/html 的Web 应用程序在iframe 内运行。它工作了一段时间,但现在当我加载页面时它崩溃并出现此错误
-[CFString retain]: message sent to deallocated instance 0x4593540
有什么想法吗?谢谢
最佳答案
您遇到保留计数问题。来自另一个 Stack Overflow 答案:
First, go back and reread the memory management rules just to make sure you are not missing anything obvious
Next, turn on NSZombieEnabled (in your executable settings, Arguments panel, add an environment variable NSZombieEnabled set to YES).
Double releasing when it shouldn't be happening
这是一个有用的 post about NSZombieEnabled
关于Objective-c错误 "-[CFString retain]: message sent to deallocated instance 0x4593540",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2588594/