Interesting. I don't understand why another thread could make the 
classloader go bananas on loading AsyncTask though.
Do you have more detail on what the unrelated thread did ? What was the 
unhandled exception ?

In my app I'm not using any add API but I have a lot of threads launched 
early on, through a ThreadPoolExecutor. 
IIRC AsyncTask are also spawn through a single ThreadPoolExecutor.

>From what I can't tell AsyncTask fails to be loaded randomly and it is 
fairly rare (I'd say once every 100 or 200 runs, unscientific number).

On Monday, August 29, 2011 7:44:14 PM UTC+2, exakoustos wrote:
>
> Was faced with the same error when trying to launch an AsyncTask and found 
> that the reason it would fail was that an unrelated thread would throw 
> an unhanded  exception early on. It seems the AsyncTask and the other thread 
> (used to fetch ad banners) shared resources and when the ad thread 
> misbehaved it made the class loader misbehave as well.
>
> Managed to figure this out while reading your post after obsessing for 4 
> days. Thank you!
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to