i have a rate us button in our app .
when you hit it, i got :
[player stop];
[player release];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/us/app/appName/idnumber?ls=1&mt=8"]];
it takes me to the app page in the app store, but then if i open the app again from the home button on the device, (back to the app), if then i hit any other button to start playing again, i got crash and:
erminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CAContextImpl stop]:
i dont know even where to search..
any help ?
I would suggest starting with Instruments and its template for checking zombies. I assume that
playerisn’t supposed to be aCAContextImplobject in your code but that’s what the variable is pointing to at the time of the error.That suggests that your player has already been released and the memory management system has re-used that piece of memory.