2011-05-22 61 views
0

我用admob sdk在iPhone 3.1.3(第一代iPhone)上運行應用程序。我不是一直都在想,最近我開始發現這個錯誤,這是我從未見過的。Admob GADBannerView.m bool _WebTryThreadLock(布爾)iOS iPhone崩潰

<Warning>: bool _WebTryThreadLock(bool), 0x3c3840: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now... 

,然後當我跟蹤誤差下在日誌文件中,我看到

Thread 6 Crashed: 
0 WebCore       0x00084380 _WebTryThreadLock(bool) + 288 
1 WebCore       0x00084ac0 _WebThreadAutoLock() + 52 
2 UIKit       0x0022061c -[UIWebView dealloc] + 128 
3 CoreFoundation     0x0003963a -[NSObject release] + 28 
4 UIKit       0x0000ab2c -[UIView(Hierarchy) removeFromSuperview] + 592 
5 UIKit       0x0005ca1c -[UIView dealloc] + 232 
6 My iPhone App      0x0008d4e0 0x1000 + 574688 
7 CoreFoundation     0x0003963a -[NSObject release] + 28 
8 UIKit       0x0000ab2c -[UIView(Hierarchy) removeFromSuperview] + 592 
9 UIKit       0x0005ca1c -[UIView dealloc] + 232 
10 CoreFoundation     0x0003963a -[NSObject release] + 28 
11 UIKit       0x000cad5c -[UIViewController dealloc] + 188 
12 My iPhone App      0x00015e60 0x1000 + 85600 
13 My iPhone App      0x000135c4 0x1000 + 75204 

,並進一步追查下來,並得到了,

-[GADBannerView dealloc] (in My iPhone App) (GADBannerView.m:111) 

-[myViewController dealloc] (in My iPhone App) (myViewController.m:378) 

-[mySubViewController dealloc] (in My iPhone App) (mySubViewController.m:64) 

我不知道是什麼繼續。有什麼我可以做,以防止崩潰或這是admob必須解決的?

任何幫助明白

回答

0

嘗試調試程序,讓您的想法發生錯誤的地方。另外你從哪裏調用removeFromSuperView方法。這可能會導致問題