[mono-android] Simple project with massive memory leak
Gusman
Geniwab at gmail.com
Sat Nov 26 23:43:23 EST 2011
Sayed, you are helping no one.
John is triying to know if the webclient leaks memory, so he wrote a cyclic
app which calls DownloadString recursively to test those leakages.
John, my experience, at least on Windows is that the webclient leaks memory
with async calls.
Using workerthreads is only a workaround to use synchronous calls, not a
good idea(less performance and higher resource usage).
You are creating anonymous delegates and a new webclient on each call, have
you tried to reuse your items?
My advine is to use a HttpWenRequest and use Its async methods.
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Simple-project-with-massive-memory-leak-tp5011249p5025925.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list