這是我的代碼。當多個文件「同時寫入文件」時,應用程序崩潰
- (void) connectionDidFinishLoading: (NSURLConnection *) connection
{
//Each connection has its own "downloadedData".
BOOL writeFlag = [downloadedData writeToFile: filePath atomically: YES];
}
我在同一time.Each連接多個NSURLConnections對應一個下載時多次下載同一time.Is完成這個方法的線程安全item.App崩潰?
它說:
_serverConnectionDiedNotification. Info -- notification=NSConcreteNotification 0x11d90470{name = AVController_ServerConnectionDiedNotification; object = <AVController: 0x11d855a0>},
AVController = <AVController: 0x11d855a0>,currentTime = 0.00
Program received signal: 「0」.
warning: check_safe_call: could not restore current frame
謝謝!
不,每個連接都有自己的「downloadedData」。儘管如此,感謝ASI-HTTPRequest庫的提示。 – 2009-07-16 08:36:52