• 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
Strange "exit due to Signal 11"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Strange "exit due to Signal 11"
      • From: Nick Zitzmann <email@hidden>
    • Re: Strange "exit due to Signal 11"
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: NSTabViews and windowcontroller(s)
  • Next by Date: Re: Need help with a nasty memory management problem
  • Previous by thread: NSTabViews and windowcontroller(s)
  • Next by thread: Re: Strange "exit due to Signal 11"
  • Index(es):
    • Date
    • Thread