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(%edi,%edx,4), %eax < 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: lobs...@neu.edu<mailto:lobs...@neu.edu>
iPhone: robopl...@gmail.com<mailto:robopl...@gmail.com>
http://www.neurotechnology.neu.edu/
http://robobees.seas.harvard.edu/
http://cyberplasm.net/











_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to