• 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 I
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: iphone landscape problems
  • Next by Date: Re: Large layers in Core Animation
  • Previous by thread: Re: Memory Leak, part I
  • Next by thread: Large layers in Core Animation
  • Index(es):
    • Date
    • Thread