I would like to play around with EXC_BAD_ACCESS
to learn to debug it, and found that it is rather difficult to create such a situation.
I would like to see the use of "Enabeling Zombie Objects" in Scheme
Where is it when you need it?
Not even this work - setting build setting to not using ARC:
myobj *m = [[myobj alloc] init];
[m release];
[m dealloc];
m = nil;
[m hello];
Some of the very good suggestions like:
int * array = (void *)0xDEADBEEF;
array[2] = 10;
It only make Xcode stop saying bad access at the line, I need worse :-)
I have seen situations where it ends up in main.m where it is the hardest to debug. Can you create one?