• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Memory Leak, part II
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memory Leak, part II


  • Subject: Memory Leak, part II
  • From: John Love <email@hidden>
  • Date: Wed, 18 Feb 2009 18:28:21 -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;
[self doCalculationForEachRow];
}
}


(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) { // = a 2nd int
return YES;
}
else {
return NO;
}
}


(5)
- (void) endBgCalculation/ {
CalcStatus theCalcStatus = [self itsCalcStatus]; // (NSMutableDictionary, 1st key)
if (theCalcStatus == kCalculating) { // a 3rd int
// 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


  • Prev by Date: Re: Windows vs View
  • Next by Date: Re: CALayer defaultValueForKey
  • Previous by thread: Re: Windows vs View
  • Next by thread: FOLDERS and document based apps (Open Recent)
  • Index(es):
    • Date
    • Thread