2012-03-11 9 views
0

私のiPhoneアプリがクラッシュし、ここでは、前のフレームを復元することができませんでし警告やエラーを与える:EXC_BAD_ACCESS

warning: Unable to restore previously selected frame. 
Current language: auto; currently objective-c 
warning: Unable to restore previously selected frame. 
warning: Unable to restore previously selected frame. 
warning: Unable to restore previously selected frame. 
warning: Unable to restore previously selected frame. 
warning: Unable to restore previously selected frame. 
warning: Unable to restore previously selected frame. 
warning: Unable to restore previously selected frame. 

警告以下を与えるには、actaulyそれはあなたの-initWithURL:方法は、自分自身を呼び出している

+(id) tbxmlWithURL:(NSURL*)aURL;{ 
    return [[TBXML alloc] initWithURL:aURL]; 
} 


-(id)initWithURL:(NSURL*)aURL{ 
    return [self initWithURL:aURL]; 
} 

答えて

2

をクラッシュするコードです再帰的に。それを行うたびに、スタックフレームが追加され、最終的にはスタック領域がなくなりクラッシュします。デバッガは、通常、そのようなときに有用な情報を提供しません。

あなたはこれを意味しましたか?

-(id)initWithURL:(NSURL*)aURL{ 
    return [super initWithURL:aURL]; 
} 
+0

正確には。それは私の問題を分類した – user1063202

関連する問題