MugunthKumar/MKStoreKit — Issue #59: BAD ACCESS ERROR
Author: chepil
Created: 2012-03-09 19:18:09+00:00
State: open

I have to errors with featureCheck and VerifyProduct on server,]
to avoid this errors, I cahnge this code -

replace onReviewRequestVerificationSucceeded();
to
onReviewRequestVerificationSucceeded(responseString);
in the MKSKProduct.m

+ (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
NSString *responseString = [[NSString alloc] initWithData:sDataFromConnection
encoding:NSASCIIStringEncoding];

sDataFromConnection = nil;

if([responseString isEqualToString:@"YES"])
{
if(onReviewRequestVerificationSucceeded)
{
onReviewRequestVerificationSucceeded(responseString);
....

Do this with this code to -

- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
NSString *responseString = [[NSString alloc] initWithData:self.dataFromConnection
encoding:NSASCIIStringEncoding];

self.dataFromConnection = nil;

if([responseString isEqualToString:@"YES"])
{
if(self.onReceiptVerificationSucceeded)
{
self.onReceiptVerificationSucceeded(responseString);
...