• 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
[pool release] causes error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pool release] causes error?


  • Subject: [pool release] causes error?
  • From: Daniel Child <email@hidden>
  • Date: Sun, 27 Mar 2005 16:29:47 -1000

Hi All,

I must be missing something obvious, but I get a strange error if I try to release the autorelease pool.

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

NSString *path;
DataParser *dp;
NSMutableArray *theRecords;
NSEnumerator *recsEnum;


path = [@"~/Documents/PROGRAMMING/pangWords.txt" stringByExpandingTildeInPath];
dp = [DataParser parserWithRecordDelim:@"\n"];
theRecords = [dp parseFileAtPath: path];

[pool release]; // causes BAD EXC ACCESS (exits with signal 11 (SIGSEGV))
return 0;

What would cause this? Thanks...

Daniel
 _______________________________________________
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: [pool release] causes error?
      • From: Elden Wood <email@hidden>
    • Re: [pool release] causes error?
      • From: Chris Hanson <email@hidden>
    • Re: [pool release] causes error?
      • From: "Mike R. Manzano" <email@hidden>
  • Prev by Date: Re: File creation
  • Next by Date: Re: [pool release] causes error?
  • Previous by thread: Re: NSDocument data-based primitives
  • Next by thread: Re: [pool release] causes error?
  • Index(es):
    • Date
    • Thread