Strange "exit due to Signal 11"
Strange "exit due to Signal 11"
- Subject: Strange "exit due to Signal 11"
- From: Michael Ströck <email@hidden>
- Date: Sat, 6 Aug 2005 15:49:20 +0200
Hi,
I'm iterating over the lines I get from a CSV-file which has 5 columns.
This works fine:
for(i=0;i<[myLines count];i++) {
NSArray * tmpArray = [[NSArray alloc] init];
tmpArray = [[myLines objectAtIndex:i]
componentsSeparatedByString:@";"];
NSLog([tmpArray objectAtIndex:0]);
[tmpArray release];
}
But the following dislpays the values and then (!?) exits with
"signal 11 (SIGSEGV)" :
for(i=0;i<[myLines count];i++) {
NSArray * tmpArray = [[NSArray alloc] init];
tmpArray = [[myLines objectAtIndex:i]
componentsSeparatedByString:@";"];
NSLog([tmpArray objectAtIndex:1]);
[tmpArray release];
}
The only difference is that I want to display the objectAtIndex:1
instead of atIndex:0 .
Why could that happen?
Thanks for any hints,
Michael
_______________________________________________
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