Hi Rick,

Have you tried this on MonoTouch 4.1 alpha? There have been some webclient
related fixes there. Would be good to know if this fixes the bug you are
seeing as well.

Jeff


On Wed, Aug 17, 2011 at 3:21 PM, ric3kg <[email protected]> wrote:

> I have this code running on both iPad 1 and 2's. On the iPad 1 the code
> hangs
> at random points getting files. On a 2 it works 100% of the time. Any
> thoughts would be appreciated.
>
> WebClient wc = new WebClient();
> Uri uri = new Uri(url);
> byte[] bytes = wc.DownloadData(uri);
>
> string path = Path.Combine(tmpPath, fileName);
>
> File.WriteAllBytes(path, bytes);
> wc.Dispose();
>
> Thanks,
> Rick
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Difference-between-iPad-1-and-iPad-2-with-WebClient-tp3750957p3750957.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to