• 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: file scan results in EX_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file scan results in EX_BAD_ACCESS


  • Subject: Re: file scan results in EX_BAD_ACCESS
  • From: Daniel Child <email@hidden>
  • Date: Fri, 31 Aug 2007 22:28:17 -0400

Hi Mike,

I was stepping through until it hits the while loop. A breakpoint after that shows that the error appears to occur at [pool release]. After canceling the thread stack message, there is a #0 thread that reads: NSDecrementExtraRefCountWasZero., followed by 1 [NSObject release] and a gazillion [DataParser dealloc]s.

int main(int argc, char *argv[])
{
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	DataParser *dp = [DataParser parserWithRecordDelim: @"\r"];
	NSString *path, *fullPath, *fileName;
	NSFileManager *NSFm;
	NSMutableArray *data;

	fileName = @"cleaner data.txt";
	NSFm = [NSFileManager defaultManager];
	path = @"<< path name here >>";
	fullPath = [path stringByAppendingPathComponent: fileName];

	data = [dp parseFileAtPath: fullPath];
	[pool release];

	return 0;
}

On Aug 31, 2007, at 7:16 PM, Mike Blaguszewski wrote:

On Aug 31, 2007, at 7:06 PM, Daniel Child wrote:

The only code that gets called is what you saw, however.

Have you tried stepping through your code line-by-line in the Xcode debugger? I agree with Shawn that it's pretty likely an infinite recursion problem.


--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.




_______________________________________________

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


  • Follow-Ups:
    • Re: file scan results in EX_BAD_ACCESS
      • From: Fritz Anderson <email@hidden>
References: 
 >file scan results in EX_BAD_ACCESS (From: Daniel Child <email@hidden>)
 >Re: file scan results in EX_BAD_ACCESS (From: "Shawn Erickson" <email@hidden>)
 >Re: file scan results in EX_BAD_ACCESS (From: Daniel Child <email@hidden>)
 >Re: file scan results in EX_BAD_ACCESS (From: Mike Blaguszewski <email@hidden>)

  • Prev by Date: Re: file scan results in EX_BAD_ACCESS
  • Next by Date: Re: file scan results in EX_BAD_ACCESS
  • Previous by thread: Re: file scan results in EX_BAD_ACCESS
  • Next by thread: Re: file scan results in EX_BAD_ACCESS
  • Index(es):
    • Date
    • Thread