08-12-2009 01:32 AM
08-12-2009 01:49 AM
The only reason to get "Too many threads" error is documented here
08-12-2009 02:21 AM - edited 08-12-2009 02:22 AM
I think you could have a check that Thread.activeCount() doesn't exceed 128.. Alternatively, I would go with system, using invokeLater(), which would always takes care of the multithreading problems.. lol
Hope this makes sense..
Edit: "Could", misinterpreted as "Cound" - Fixed..
08-12-2009 08:48 AM
My suggestion is to set up a single thread to do the downloading, and queue up the requests.
I don't see the value of kicking off 20 threads to download 20 images, on a device with such limited bandwidth.
Threads are a valuable and constrained resource on the BB platform.
08-12-2009 09:48 AM
I would strongly agree with RexDoug! Infact I had suggested the same, but not in a right manner - sorry! Why don't you set up a single thread that fetches the images from the server?