NSAutoReleaseNoPool(): Object 0x********* of class NSConreteData autoreleased with no pool in place
来源:互联网 发布:淘宝外包客服怎么样 编辑:程序博客网 时间:2024/05/29 11:00
遇到这个错误log信息的时候,表示内存泄露。
这个泄露是由于多线程的内存autorelease造成的。
我用的方法是
[NSThreaddetachNewThreadSelector:@selector(bodyImageBtbClick)toTarget:selfwithObject:nil]; 然后执行时候log提示泄露
我的解决方式是:
在bodyImageBtbClick 这个方法的开始加入一句
NSAutoreleasePool *pool = [[NSAutoreleasePoolalloc] init];
结束加入一句 [pool release];这样就解决了。
- NSAutoReleaseNoPool(): Object 0x********* of class NSConreteData autoreleased with no pool in place
- *** __NSAutoreleaseNoPool(): Object 0x6013810 of class __NSArrayI autoreleased with no pool in place
- ARC 工程出现错误__NSAutoreleaseNoPool(): Object 0x8850ce0 of class __NSCFData autoreleased with no pool in
- nsthread autoreleased with no pool in place – just leaking警告的解决方法
- Heap Sort | out-of-place and in-place implementation
- Fast Updates with MongoDB (update-in-place)
- Method 'send' in the COM object of class 'Com.Message' returned error code 0x8004020F
- In-place editing of ListView subitems
- How to submmit a couple of jobs with condor in a heterogeneous pool?
- Question 30: What is the order of destructor calls for an object of class Y inherited from class X that has an object of class A
- in-place
- 748A. Santa Claus and a Place in a Class
- A. Santa Claus and a Place in a Class
- CF # 389 Santa Claus and a Place in a Class
- A. Santa Claus and a Place in a Class
- CF # 389 Santa Claus and a Place in a Class
- The Methods of class Object
- Caffe cuDNN max-pooling with in-place dropout
- js一般方法改写成面向对象方法的无限级折叠菜单
- magento -- 使用第三方PHP库
- rails 之 form_for VS form_tag
- 有关mtkfb中screen_update队列的分析
- linux 下 大括号的用法
- NSAutoReleaseNoPool(): Object 0x********* of class NSConreteData autoreleased with no pool in place
- 转载和积累系列 - nodejs 实现cookie
- iOS 开发总结
- 如何进行项目风险评估
- C#给DataTable添加序号、C#给DataTable添加合计、小计
- iOS开发笔记--调用iPhone的短信、地图、电话、邮件、浏览器
- replaceAll字符创替换
- 秋雨寄相思
- biztalk 2010 架构