App crashes when multiple files "write to file" simultaneously
<p>Here is my code.</p>

<pre><code>- (void) connectionDidFinishLoading: (NSURLConnection *) connection

{
    //Each connection has its own "downloadedData".
    BOOL writeFlag = [downloadedData writeToFile: filePath atomically: YES];
}
</code></pre>

<p>I have multiple NSURLConnections at the same time.Each connection corresponds to one download item.App crashes when multiple downloads finish at the same time.Is this method thread-safe?</p>

<p>It says:</p>

<pre><code>_serverConnectionDiedNotification. Info -- notification=NSConcreteNotification 0x11d90470{name = AVController_ServerConnectionDiedNotification; object = &lt;AVController: 0x11d855a0&gt;},
 AVController = &lt;AVController: 0x11d855a0&gt;,currentTime = 0.00

Program received signal:  “0”.
warning: check_safe_call: could not restore current frame
</code></pre>

<p>THANKS!</p>
