EXC_BAD_ACCESS in NSApplicationMain
EXC_BAD_ACCESS in NSApplicationMain
- Subject: EXC_BAD_ACCESS in NSApplicationMain
- From: "Ayers, Joseph" <email@hidden>
- Date: Sun, 24 Jul 2011 18:50:06 -0400
- Acceptlanguage: en-US
- Thread-topic: EXC_BAD_ACCESS in NSApplicationMain
In XCode 4.1. and Lion,, compiling for OS X 10.6, My application is crashing in main.m. Specifically it exhibits EXC_BAD_ACCESS errors in main.m, NSApplicationMain and obj_msgSend on disassembly. I've got symbolic breakpoints at: “objc_exception_throw” and “[NSException raise]“.
Any idea how to get beyond this?
Thanks,
Joseph
main.m
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv); < Thread 1 EXC_BAD_ACCESS (code = 1, address = 0x553838b0)
}
Errors
in objc_msgSend_disassembly_0x97876d54.s
The offending line is
0x97876d54: movl 8(i,x,4), x < Thread 1 EXC_BAD_ACCESS (code = 1,
in NSApplicationMain_disassembly_0x94cd58f3.s
The offending line is:
0x94cd58f3: testb %al, %al < Thread 1 EXC_BAD_ACCESS (code = 1,
in main.m, the offending line is:
return NSApplicationMain(argc, (const char **) argv); < Thread 1 EXC_BAD_ACCESS (code = 1,
argc = (int) 1
argv = (char**) 0xbffffb18
Joseph Ayers, Professor
Department of Biology and
Marine Science Center
Northeastern University
East Point, Nahant, MA 01908
Phone (781) 581-7370 x309(office), x335(lab)
Boston: 444 Richards Hall (617) 373-4044
Cellular (617) 755-7523, FAX: (781) 581-6076
Google Voice: (781) 346-9589
eMail: email@hidden<mailto:email@hidden>
iPhone: email@hidden<mailto:email@hidden>
http://www.neurotechnology.neu.edu/
http://robobees.seas.harvard.edu/
http://cyberplasm.net/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden