I'm testing/debugging my app in the simulator. Once in a while (I can't track down any specifics) I get EXC_BAD_ACCESS exception, but when it happens, line
int retVal = UIApplicationMain(argc, argv, nil, nil);
in the main.c
is being highlighted. There's nothing in the log to indicate what causes the error (nothing at all, in fact). What can I do to track this down, to understand what causes the error (and, naturally, fix it)?