• 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
NSXMLParser bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLParser bug?


  • Subject: NSXMLParser bug?
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Thu, 11 Sep 2008 07:57:15 -0400
  • Thread-topic: NSXMLParser bug?

Hi all, I wanted confirmation of this by someone else before I filed a useless bug report.  I'm using NSXMLParser in a slightly non-standard way, just so I can slog through my unit tests quickly.  I instantiate it like this:

NSXMLParser *dummyParser = [[NSXMLParser alloc] init];

Rather than use either initWithContentsOfURL: or initWithData:. My unit test runs fine right up until I go to release the parser; then they crash in NSXMLParser's dealloc method.  Does anyone else see this as well?  My test case code is now down to this:

- (void) testParserDelegateMethods
{
	NSXMLParser *dummyParser = [[NSXMLParser alloc] init];
	NSAssert(dummyParser != nil, @"Problem allocating parser");
	NSLog(@"Parser retain count = %u", [dummyParser retainCount]);
	[dummyParser release];
}

Thanks,
Cem Karan
_______________________________________________

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: NSXMLParser bug?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Rounding very small numbers.
  • Next by Date: Re: Cocoa application running very slow under 64 bit
  • Previous by thread: Preferencepane and user defaults
  • Next by thread: Re: NSXMLParser bug?
  • Index(es):
    • Date
    • Thread