How can I release this NSXMLParser without crashing my app?

Both your class and NSXMLParser are releasing data, which causes your current crash. The only member should be resultString. You should initialize resultString in convertEntitiesInString: not init, so the same instance could be used more than once.

You should return either self. ResultString or resultString retain autorelease from convert, because what you currently do will cause a double release later if you release resultString in dealloc as you should. You should use resultString directly in parser:foundCharacters: instead of self.

ResultString which is a method call.

I don't see xmlParser being used outside of convertEntitiesInString:. You could make xmlParser local to that method (not an instance variable) and release it when you're done with it in that method, before the return resultString autorelease line.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions