• 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 alloc] initWithString] crashes with valid string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[NSDate alloc] initWithString] crashes with valid string


  • Subject: Re: [[NSDate alloc] initWithString] crashes with valid string
  • From: Tony Becker <email@hidden>
  • Date: Tue, 15 Jul 2008 17:21:11 -0400

I didn't see any code sniglet for this, but it's not something simple like:

	[[NSDate alloc] initWithString:"..."];

vs

	[[NSDate alloc] initWithString:@"..."];

i.e.: passing CString vs NSString?



On Jul 15, 2008, at 4:12 PM, Kyle Sluder wrote:

On Tue, Jul 15, 2008 at 2:36 PM, Markus Spoettl
<email@hidden> wrote:
Any ideas what could be causing something like this?

Doesn't look like it's your fault, unless for some reason the string is being dealloc'd under the call stack's feet -- make sure that the call stack eventually winds up in your code; if it doesn't, you've hit the top of the runloop and the string has probably been released by an autorelease pool. After confirming this, file a bug at http://bugreport.apple.com, as this is a pretty serious issue.

--Kyle Sluder
_______________________________________________

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

_______________________________________________

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


References: 
 >[[NSDate alloc] initWithString] crashes with valid string (From: Markus Spoettl <email@hidden>)
 >Re: [[NSDate alloc] initWithString] crashes with valid string (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Newbie: How to understand Xcode's documentation
  • Next by Date: Re: Newbie: How to understand Xcode's documentation
  • Previous by thread: Re: [[NSDate alloc] initWithString] crashes with valid string
  • Next by thread: Re: [[NSDate alloc] initWithString] crashes with valid string
  • Index(es):
    • Date
    • Thread