The iPhone app I am developing has a strange quirk where it runs ok when xcode has launched it, but not when launched directly on the device.
I've checked the crash logs and the exception seems to be occurring in libxml2.2 in xmlParseCharData. It's quite a big xml document that is being parsed so I think that might be the problem.
I tried with a smaller xml document and this was fine. So either it is the size of the document or something in the document that is causing it but the same large document is parsed ok when launched via xcode.
Any ideas why this would be happening or how I might start trying to debug it?