class NSCFString autoreleased with no pool in place - just leaking

Ads

 
 

Share on Google+Share on Google+

Deepak Kumar
class NSCFString autoreleased with no pool in place - just leaking
1 Answer(s)      6 years and 7 months ago
Posted in : MobileApplications

Hi,

In my application following error is coming:

class NSCFString autoreleased with no pool in place - just leaking

What is the solution?

Thanks

Ads
View Answers

February 9, 2011 at 11:44 AM


Hi,

If you are running your thread then put your code between NSAutoreleasePool object as shown below:

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

*** Your code here ***

[pool release];

Thanks


Ads









Related Tutorials/Questions & Answers:
POOL
and filling pools. Create pool class that calculates the price of a service call...) for a pool. Pool class should have methods to calculate volume, capsity... on the amount of time it will take to fill a customer's pool with water. Table below
Pool Chlorine
Pool Chlorine  *** Deleted by Admin ***** Pool Chlorine Watson's of Cincinnati is a toy store for adults offering above ground pools, pool supplies, Envisions Home Theater electronics, home theater furniture, casual patio
Advertisements
Pool Chemicals
Pool Chemicals  **delted by admin *** a toy store **deleted by admin** offering above ground pools, pool supplies, Envisions Home Theater electronics, home theater furniture, casual patio furniture, spas & hot tubs etc
Version of commons-pool>commons-pool dependency
List of Version of commons-pool>commons-pool dependency
Version of excalibur-pool>excalibur-pool dependency
List of Version of excalibur-pool>excalibur-pool dependency
Version of excalibur-pool>excalibur-pool-impl dependency
List of Version of excalibur-pool>excalibur-pool-impl dependency
Version of excalibur-pool>excalibur-pool-instrumented dependency
List of Version of excalibur-pool>excalibur-pool-instrumented dependency
Version of excalibur-pool>excalibur-pool-api dependency
List of Version of excalibur-pool>excalibur-pool-api dependency
Connection Pool
;tr class=barheader><td>Directive</td><td>Local Value<
Java-Connection Pool - JDBC
Java-Connection Pool  How can I create a connection pool. My database... is Weblogic 8. Which is the best approach to create a connection pool?  Hi friend,import java.sql.*;import java.io.*;public class ConnectionPool
threads & autorelease pool
threads & autorelease pool  How to set autorelease pool for NSThread method in Objective C?   [NSThread detachNewThreadSelector:@selector... { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; //Do stuff [pool release
place reservation in plane
place reservation in plane   hi,how can i write a program in Java programming to place reservation in air plane from the menu let the user to inter his/her name, age, date of traveling, and the seat in the plane
Java-Connection Pool - JDBC
Java-Connection Pool  How can I create a connection pool. My database is MS SQL server 2000(username-sa, pwd-admin) and my application server is Weblogic 8. Which is the best approach to create a connection pool? Kindly help
Enhancement for connection pool in DBAcess.java
Enhancement for connection pool in DBAcess.java  package spo.db...*; import java.sql.*; import java.util.Properties; public class DBAccess... database connection pool."); else return connection1; } public
to use ArrayList in the place of Vector
to use ArrayList in the place of Vector  public Enumeration getInterfaces() { ISCMetaType currentType = this; ArrayList allInterfaces = new ArrayList(); while( currentType != null
to use ArrayList in the place of Vector
to use ArrayList in the place of Vector  public Enumeration getInterfaces() { ISCMetaType currentType = this; ArrayList allInterfaces = new ArrayList(); while( currentType != null
Artifacts of commons-pool
List of Artifacts of commons-pool maven depenency
Artifacts of excalibur-pool
List of Artifacts of excalibur-pool maven depenency
JavaScript where to place in HTML
JavaScript where to place in HTML   Where to place JavaScript code into HTML Code?   Placing JavaScript code into HTML Code In HTML, JavaScript can be declared anywhere either in <Head>? or <Body>? Tag
Swimming Pool Calculator - Java Beginners
Swimming Pool Calculator  I have to write a program to calculate the volume of a swimming pool. The assignment is as follows: This Swimming Pool... depth of a pool and the program will calculate the volume of that pool based
Maven Dependency commons-pool >> 1.0
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.0 in your project
Maven Dependency commons-pool >> 1.1-dev
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.1-dev in your project
Maven Dependency commons-pool >> 1.1
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.1 in your project
Maven Dependency commons-pool >> 1.1-RC1
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.1-RC1 in your project
Maven Dependency commons-pool >> 1.1-RC2
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.1-RC2 in your project
Maven Dependency commons-pool >> 1.2
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.2 in your project
Maven Dependency commons-pool >> 1.3
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.3 in your project
Maven Dependency commons-pool >> 1.4
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version1.4 in your project
Maven Dependency commons-pool >> 20020501
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version20020501 in your project
Maven Dependency commons-pool >> 20030623.172700
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version20030623.172700 in your project
Maven Dependency commons-pool >> 20030818.195203
You should include the dependency code given in this page to add Maven Dependency of commons-pool >> commons-pool version20030818.195203 in your project