我的應用程序泄漏我真的無法理解,任何人都可以幫我嗎?0x0內存泄露[iphone]
儀器堆棧跟蹤:
0 libSystem.B.dylib calloc
1 WebCore CurrentThreadContext()
2 WebCore WKSetCurrentGraphicsContext
3 UIKit -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:letterSpacing:includeEmoji:]
4 UIKit -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:]
5 UIKit -[UILabel _drawTextInRect:baselineCalculationOnly:]
6 UIKit -[UILabel drawTextInRect:]
7 UIKit -[UILabel drawRect:]
8 UIKit -[UIView(CALayerDelegate) drawLayer:inContext:]
9 QuartzCore -[CALayer drawInContext:]
10 QuartzCore -[CALayer _display]
11 QuartzCore -[CALayer display]
12 QuartzCore CALayerDisplayIfNeeded
13 QuartzCore CA::Context::commit_transaction(CA::Transaction*)
14 QuartzCore CA::Transaction::commit()
15 QuartzCore CA::Transaction::release_thread(void*)
16 libSystem.B.dylib _pthread_tsd_cleanup
17 libSystem.B.dylib _pthread_exit
18 Foundation +[NSThread exit]
19 Foundation __NSThread__main__
20 libSystem.B.dylib _pthread_body
21 TestApp 0x0
你的意思是不是來自主線程?我的大部分繪圖都是從View(Will/Did)出現的方法完成的。或者從線程填充的UITableViewController。例如,如果使用NSOperationQueue,則爲 – Thys 2009-12-18 08:42:05
。所有操作都在parralel線程中。試圖在我的操作中顯示警報時,我有內存泄漏。 – Morion 2009-12-18 10:39:11