Hi All, In my app I am using the following :
WebClient.DownloadDataAsync to download a file (epub) When the download starts I actually show an AlertView to display the progress of the download with a cancel button to give the user the possibility to Cancel the download (e.g. When he is on 3G and download is slow). When the user presses the cancelbutton I actually call WebClient.CancelAsync(); to interrupt the download. In my DataCompleted Routine I do a check on e.cancelled to figure out if the user has cancelled or not (or at least not break at that point) So far So good and all these pieces run good (without any problem) but after the code of DownloadCompleted has finished Mono throws me the exception System.Threading.ThreadInterrupedException. My stacktrace tells me : System.Threading.WaitHandle.WaitOne(etc..) System.Net.WebAsyncResult.WaitUntilComplete(etc..) System.New.WebConnectionStream.Read(etc..) System.Net.WebClient.ReadAll (etc..) System.Net.WebClient.DownloadDataCare(etcŠ) After reading up on CancelAsync() now I am at a loss how to fix this exception. Please can anybody give me some advise Regards Danny
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
