On Mar 29, 1:41 pm, Mark Murphy <[email protected]> wrote:
> http://stackoverflow.com/questions/5358014/android-httpclient-oom-on-...
>
> HTC, for unknown reasons, messed up the buffer size. If you set it
> yourself, the problem goes away.
>
That's the problem.

Until I got a recent log, I didn't know how much it was trying to
allocate - 2Megabytes. That seems awfully greedy when you have a 16M
heap - multiple downloads in a row without triggering garbage
collection are sure to bring you down. I'm happy to allocate less
since I'm only downloading 69K files.

Like those in Stack Overflow said, I hope HTC enjoys all the returns.

I guess once in a while, the stack trace from OutOfMemoryError
actually does tell you where the problem is.

Nathan

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

Reply via email to