If you're using multithreading for UI synchronization, i.e. for displaying
progressbar of download status, consider reducing the number of UI refresh
events on the UI thread. We discovered that MD has occasional crashes(non
catchable) if you are synchronizing UI thread in very short time intervals,
while having long running working thread in background. I expirienced this
not only with sockets, but with heavy database loads(sqllite).

Rgds,
Božo

On Mon, Jun 6, 2011 at 08:30, Nic Wise <n...@fastchicken.co.nz> wrote:

> webclient (on ios) uses sockets, and I'd assume the droid version is
> the same. this usually bypasses the internal "keep the WAN up" stuff,
> so you might need to use something else to keep it working. Maybe ping
> a website with whatever the android sdk provides, and hence keep the
> WAN going....
>
>
>
> On Mon, Jun 6, 2011 at 07:27, Craig Dunn
> <craig.d...@conceptdevelopment.net> wrote:
> > I'm currently downloading 50~100Mb ZIP files in my Monodroid app.
> >
> > Using WebClient.DownloadFileAsync().
> >
> > The code works fine ~100% of the time in MonoTouch on iOS. It even worked
> > pretty reliably on an older Android device (Galaxy Tab 7" with 2.2 i
> think),
> > although it did sometimes fail.
> >
> > BUT on a Samsung 10.1" with Honeycomb (3.0) it struggles to work **1 time
> > out of 20** (or less!). The failure point varies - could be at 2%
> complete
> > or 90% complete or anywhere in-between. Doesn't seem to be a pattern.
> >
> > logcat tells me that whenever it fails, a GC_EXPLICIT occurs - although
> I've
> > no idea if this is related, since sometimes GC_EXPLICIT occurs during the
> > download but does _not_ affect it. I sometimes see TelephonyRegistry
> > radioTurnedOff messages too.
> >
> > ANY suggestions/thoughts appreciated...
> >
> > Craig
> >
> > _______________________________________________
> > Monodroid mailing list
> > Monodroid@lists.ximian.com
> >
> > UNSUBSCRIBE INFORMATION:
> > http://lists.ximian.com/mailman/listinfo/monodroid
> >
> >
>
>
>
> --
> Nic Wise
> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
> b. http://www.fastchicken.co.nz/ | http://www.flickr.com/photos/nicwise
>
> mobileAgent (for FreeAgent): get your accounts in your pocket.
> http://goo.gl/IuBU
> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
> London Bike App: Find the nearest Boris Bike, and get riding!
> http://goo.gl/Icp2
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to