Hi All ,
I am trying to capture screenshot continuously.It capture screen 31 times and after that it crashed.
I have changed the below function and release the memory .Now it work 340 times and then it crashed.The performance get improved .
- (void)createResponse {
[response_ release];
if ([value_ isKindOfClass:[UIImage class]])
{
NSData *data =UIImagePNGRepresentation(value_);
[value_ release];
value_ = [data base64EncodedString];
// value_ = [UIImagePNGRepresentation(value_) base64EncodedString];
}
NSDictionary *dict = [self convertToDictionary];
response_ = [[HTTPJSONResponse alloc] initWithObject:(id)dict];
}
In iOS, use the Product-Profile tool for found the memory leak.Now this tool shows more memory leak in below function.
[SBJsonStreamWriter init]
[SBJsonStreamWriter datawithobject]
Is there any memory leak issue with Selenium?