• 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
Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times


  • Subject: Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
  • From: Serge Meynard <email@hidden>
  • Date: Wed, 30 Mar 2005 23:56:34 -0500


On Mar 30, 2005, at 23:32, Kane Dijkman wrote:

@implementation test


- (IBAction)run:(id)sender
{
int i;
for (i=0; i<500000; i++)
{
NSDate * thisDate = [NSDate dateWithNaturalLanguageString:@"12/14/2004"];
NSLog(@"%d", i);
}
}
@end


After running through about 100,000 of these (give or take) I get the exact same error.

My questions are:

Given the error is an EXC_BAD_ACCESS error am I doing something wrong memory management wise?

If not, any idea what is causing this?

It might help if you gave a stack trace, showing where the error is happening. Perhaps you're running into some sort of limitation with the autorelease pool? Every call you make above to NSDate creates an autoreleased object in the current pool.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Insetting a complex NSBezierPath shape? (From: Keith Blount <email@hidden>)
 >NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times (From: Kane Dijkman <email@hidden>)

  • Prev by Date: Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
  • Next by Date: Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
  • Previous by thread: Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
  • Next by thread: Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
  • Index(es):
    • Date
    • Thread