开发者

iPhone app crashes in xmlparser in the middle of nowhere?

This app has been running fine for months, but now on iOS4 i get crashes when using NSXMLParser. It is crashing in the middle of parsing.

The problem is that i dont get a decent call-stack. the result is:

0 _func__.29470 1 stub helpers

combined with a: Program received signal: “EXC_BAD_ACCESS”.

in the logs.

I enabled: NSZombieEnabled NSDebugEnabled

and i dont get any messages coming out of that, so I guess this is开发者_如何学编程 some really nasty memory bug.

Any advice on how to track this down?


Solved

there was some weird stuff in my xml in the url attribute:

    <relatedArticle url="http://www.xx.yy/dir/7/99/29/&Atilde;Ç&Acirc;&laquo;-cristiano-ronaldo-a-rate-son-mondial-&Atilde;Ç&Acirc;&raquo;/"><![CDATA[Le podcast de Christophe Berti : "Ronaldo a ratÈ son mondial"]]></relatedArticle>

This crashed the app. I think it is a bug as in this case NSXMLParser should return an error.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜