When you perform an operation in another thread, place EVERYTHING inside your thread specific autorelease pool. That includes writing debug messages in log as well as sending notifications. Otherwise you will leak memory.
Showing posts with label NSAutoReleasePool. Show all posts
Showing posts with label NSAutoReleasePool. Show all posts
Friday, April 8, 2011
Autoreleased with No Pool in Place - Just Leaking
Labels:
debug,
NSAutoReleasePool,
NSLog,
NSNotificationCenter
Tuesday, December 21, 2010
Data Formatters temporarily unavailable, will re-try after a continue
Mysterious crash happens, when I'm trying to display about 65MB image in iPhone4. Wonder what could be the problem... (hint: trying to display 65 MEGABYTE image file):
Program received signal: “0”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
Labels:
crash,
debug,
didReceiveMemoryWarning,
NSAutoReleasePool,
warning
Subscribe to:
Posts (Atom)