[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

iPhone app development: Sudden flood of _NSAutoreleaseNoPool errors, why??

Asked by ehensens in Cocoa Programming Language, Objective-C Programming Language, C++ Programming Language

Tags: iPhone, XCode, Cocoa, Objective-C

Hi everyone,

I have an iPhone app and I recently added some code that, quite simply, created some NSStrings, defined them with stringWithFormat from some c++ char[]'s I had already, and set the titles of some UILabels as these NSStrings. I've done this before without any problems. The application compiles without any errors or warnings, and it runs like it should, but I am getting a HUGE flood of _NSAutoreleaseNoPool errors in the console! I don't understand them. I'm posting both the code I added as well as the errors on the console window.

Can anyone tell me what the heck is going on here and how to fix it? Please let me know if you have any questions. Thanks in advance!!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
NSString *iImageSizeAsNS = [NSString stringWithFormat:@"Size: %.1f KB", ((float)iImageSize / 1024)];
	NSString *cImageTitleAsNS = [NSString stringWithFormat:@"%s", cImageTitle];
	NSString *cFileNameAsNS = [NSString stringWithFormat:@"%s", cFileName];
	NSString *ImageDimensionsAsNS = [NSString stringWithFormat:@"Dimensions: %d x %d", iImageWidth, iImageHeight];
	
	ImageSizeLabel.text = iImageSizeAsNS;
	ImageTitleLabel.text = cImageTitleAsNS;
	FileNameLabel.text = cFileNameAsNS;
	ImageDimensionsLabel.text = ImageDimensionsAsNS;
 
 
 
//=======================
 
 
 
2009-06-04 11:17:16.345 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x73598 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30c52160 0x30c53e1c 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.362 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x1200d0 of class UICFFont autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30ba43a4 0x30b176f4 0x30c53e3c 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.375 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x1284f0 of class UICFFont autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30ba4374 0x30b51568 0x30b515d4 0x30b51758 0x30b1365c 0x30c53ec0 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.387 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x1590a0 of class UICGColor autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30ba6600 0x30a72308 0x30a72404 0x30b13670 0x30c53ec0 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.399 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x15bde0 of class UICGColor autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30ba6600 0x30a72308 0x30a71e94 0x30b136d8 0x30c53ec0 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.411 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x1200d0 of class UICFFont autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30b52d08 0x30b54634 0x30b53118 0x30a7054c 0x30b13710 0x30c53ec0 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.422 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x73598 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30b5210c 0x30b5464c 0x30b53118 0x30a7054c 0x30b13710 0x30c53ec0 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.434 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x1200c0 of class UIDeviceWhiteColor autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30b52db4 0x30b54874 0x30b53118 0x30a7054c 0x30b13710 0x30c53ec0 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.446 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x15b5e0 of class CABasicAnimation autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x31de0028 0x30a75f38 0x31dde42c 0x31dd29f8 0x31dd2960 0x31dd6678 0x31dd63d8 0x30a6f8b4 0x30b12844 0x30b131a0 0x30c54074 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.458 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x14a6a0 of class NSConcreteValue autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30699319 0x306a9cb5 0x31ddfb28 0x31ddf754 0x30a75fd4 0x31dde42c 0x31dd29f8 0x31dd2960 0x31dd6678 0x31dd63d8 0x30a6f8b4 0x30b12844 0x30b131a0 0x30c54074 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.481 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x159c50 of class CABasicAnimation autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x31de0028 0x30a75f38 0x31dde42c 0x31dd29f8 0x31dd2960 0x31dd51c0 0x31dd641c 0x30a6f8b4 0x30b12844 0x30b131a0 0x30c54074 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.524 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x14a9d0 of class NSConcreteValue autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30699319 0x306a0e79 0x31ddfb80 0x31ddf754 0x30a75fd4 0x31dde42c 0x31dd29f8 0x31dd2960 0x31dd51c0 0x31dd641c 0x30a6f8b4 0x30b12844 0x30b131a0 0x30c54074 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.621 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x15b500 of class UIToolbarTextButton autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30c54248 0x30c5443c 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.629 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x15c200 of class CABasicAnimation autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x31de0028 0x30a75f38 0x31dde42c 0x31dd29f8 0x31dd2960 0x31dd6678 0x31dd63d8 0x30a6f8b4 0x30b12844 0x30b22c48 0x30c54490 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
2009-06-04 11:17:16.640 MyProject[2719:5a03] *** _NSAutoreleaseNoPool(): Object 0x11bd60 of class NSConcreteValue autoreleased with no pool in place - just leaking
Stack: (0x306d1c87 0x3066ebbb 0x3066eb87 0x30699319 0x306a9cb5 0x31ddfb28 0x31ddf754 0x30a75fd4 0x31dde42c 0x31dd29f8 0x31dd2960 0x31dd6678 0x31dd63d8 0x30a6f8b4 0x30b12844 0x30b22c48 0x30c54490 0x30c52100 0x23bb5 0x30672e09 0x30672cd7 0x3146178d)
[+][-]06/10/09 02:17 PM, ID: 24596647Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Cocoa Programming Language, Objective-C Programming Language, C++ Programming Language
Tags: iPhone, XCode, Cocoa, Objective-C
Sign Up Now!
Solution Provided By: isdi
Participating Experts: 1
Solution Grade: A
 
[+][-]06/16/09 10:42 AM, ID: 24640383Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/16/09 10:43 AM, ID: 24640391Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/16/09 10:44 AM, ID: 24640398Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/16/09 10:46 AM, ID: 24640421Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/16/09 01:54 PM, ID: 24642467Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625