I have an application with a single main view that runs essentially all interaction. All of the graphics are painted with graphics functions. For things that need to be painted multiple times, I keep all instances in an NSMutableArray object defined in the view's .h. I just tried to add a third array to this file and it causes a EXC_BAD_ACCESS error before the program loads completely.
When I have the line:
NSMutableArray *notifiers;
in the file, the program bugs out, but it works if that line is commented.
I have also tried adding this line:
notifiers = [[NSMutableArray alloc] init];
in the .m but it does not help.
The weird thing is that I have two other arrays that work perfectly and they used this exact same definition and initialization. Does anyone know what might cause this error?
Thanks
When I have the line:
NSMutableArray *notifiers;
in the file, the program bugs out, but it works if that line is commented.
I have also tried adding this line:
notifiers = [[NSMutableArray alloc] init];
in the .m but it does not help.
The weird thing is that I have two other arrays that work perfectly and they used this exact same definition and initialization. Does anyone know what might cause this error?
Thanks