Removing a UIViewController executing a thread crashes my app
<p>My application has buttons in a Tab bar. </p>

<p>When I touch a button I load a nib, add the view and remove other view from the stack and release it.</p>

<p>The problem is one of my view controller is using an object which get xml data from NSURLConnection, parse them and send them to the view controller in order to display them. It works, but sometimes it crashes when I touch another button which causes the release of this view controller.</p>

<p>What is the best way to release it and maybe stop the thread which is getting data ?</p>

<p>Thanks a lot for your help.</p>

<p>Thierry</p>
