Re: signal 11 (SIGSEGV) error
Re: signal 11 (SIGSEGV) error
- Subject: Re: signal 11 (SIGSEGV) error
- From: Shawn Erickson <email@hidden>
- Date: Thu, 23 Apr 2009 18:07:14 -0700
On Thu, Apr 23, 2009 at 5:55 PM, Sandy Santra <email@hidden> wrote:
> The Debugger has exited due to signal 11 (SIGSEGV).The Debugger has
> exited due to signal 11 (SIGSEGV).
>
> The error doesn't kick in if I set a break before my (second example) array
> code that shows up a little later:
>
> NSArray *pathComponents = [path pathComponents];
> for (NSString *element in pathComponents) {
> NSLog(@"%@", element);
> }
> [path release];
>
> Anyone know what I might be doing wrong here?
You don't have ownership of the object pointed to by "path" so you
shouldn't be releasing it.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden