Memory Leak, Part I
Memory Leak, Part I
- Subject: Memory Leak, Part I
- From: John Love <email@hidden>
- Date: Wed, 18 Feb 2009 18:56:48 -0500
[part II of my plea for help]
(3)
- (void) doCalculation {
for (row=1; row <= 10000; row++) { // many rows, therefore
much time
if ([self shouldExit]) break;
// do calculation for each row
}
}
(4)
- (BOOL) shouldExit {
[self pingWorkbook]; // calls –setExcelError
(NSMutableDictionary, with 2nd key)
int NoExcelAppOrNoWorkbookErr = [self itsExcelError];
if (NoExcelAppOrNoWorkbookErr != kNoError) { // kNoError = 0
[self setCalcStatus:NoExcelAppOrNoWorkbookErr];
return YES;
}
CalcStatus theCalcStatus = [self itsCalcStatus]; //
(NSMutableDictionary, 1st key)
if (theCalcStatus == kStopped) {
return YES;
}
else {
return NO;
}
}
(5)
- (void) endBgCalculation/ {
CalcStatus theCalcStatus = [self itsCalcStatus];
if (theCalcStatus == kCalculating) {
// do stuff
}
else {
// do stuff
}
}
John Love
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden