[mono-android] Possible GC Bug?
Miguel de Icaza
miguel at novell.com
Tue Mar 29 11:37:54 EDT 2011
> Thanks for your input Jon. So if I understand correctly, I should call
> GC.Collect regularly? I don't see how to know what objects (assuming this
> isn't exclusive to Bitmaps) are allocated in Dalvik and which ones aren't.
> If that's the case, then I should call collect just in case there's
> something that needs to be cleaned up.
No.
The document pattern is that developers should use the Dispose()
method on objects that might be holding on to important resources
(memory, network connections, license keys, file descriptors and other
precious and finite resources)
More information about the Monodroid
mailing list