'EXC_BAD_ACCESS' When trying to access a variable?
- by Nick Brooks
I get an 'EXC_BAD_ACCESS' error when trying to access variable in a function other than the one it was set in:
NSLog(@"Commening search (%@)",sessionID); // This causes it
The variable is set in the 'awakeFromNib' function:
//Retrieve Session-ID
sessionID = [self getSessionID];
The variable itself is defined in the header:
NSString *sessionID;