On Mar 4, 1:02 pm, Joshua Frank <[email protected]> wrote: > I have a couple of worker threads in my app which I stop and restart > during onPause() and onResume(). I use a method that clears all the > reference to and from the threads when stopping. However ThreadGroup > is still retaining a reference to my threads and causing a small > memory leak. After pausing and resuming my app about 40 to 50 times I > will then get OutOfMemory Errors when loading bitmaps. Allthough this > doesn't effect most of my users I do get occasional reports of > crashes.
The only leak I know of in this area happens with Threads that are never actually started. Threads remove themselves from the ThreadGroup before they exit, but if they're never started then they never have a chance to do the remove. See also: http://groups.google.com/group/android-beginners/browse_thread/thread/151a405ebc822d10# -- 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

