EXE BAD ACCESS in line 14 in main.m after I type randomly when program launches?

微笑、不失礼 提交于 2019-12-02 23:22:49

问题


I got this weird crash EXE_BAD_ACCESS error when I typed randomly by keyboard in freshly new View Based Application project in Xcode 4.1 and iOS SDK 4.3. When I press run after I created a View Based Application Project, a blank screen with come. And when I start to press keys from keyboard two to five letters ,it crashes on main.m file line no. 14.

9  #import "UIKit/UIKit.h"
10 
11 int main(int argc, char *argv[]) {
12    
13    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
14    int retVal = UIApplicationMain(argc, argv, nil, nil);
15    [pool release];
16    return retVal;
17  }

Please help, I want to know what's going on. Any links, related posts would be helpful.

Thanks.


回答1:


See this thread. It is of course a bug with Xcode 4.1 build: 4B103. https://github.com/futuretap/InAppSettingsKit/issues/75#issuecomment-2343312



来源:https://stackoverflow.com/questions/7670229/exe-bad-access-in-line-14-in-main-m-after-i-type-randomly-when-program-launches

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!