[mono-android] Simple project with massive memory leak

SRI srid68 at gmail.com
Sat Nov 26 21:14:56 EST 2011


Hi Jack,

       Please read this Issue
http://forums.silverlight.net/t/12237.aspx/1 on your Memory Leak and
other issues with WebClient.

       May be you have to call  WebClient.CancelAsync() as discussed
in the above article.

       I am not an Expert on MonoDroid, but when I looked at your
code, the first thing I did was google to find out whether WebClient
leaks memory and found many issues with it.

       These issues are not related to MonoDroid, since they are using
the same mono libraries which are the same functionally from .NET.

       Hope this helps. Please share your findings about how you
solved this issue.

Best Regards,
Sridharan Srinivasan
Alias Sri


On Wed, Nov 23, 2011 at 12:38 AM, Jack Bond <jackhanbond at hotmail.com> wrote:
> Thanks for confirming Axel. In the primary application which exposed this
> issue, I've put in a button to force a garbage collection, and that
> typically triggers a crash. I've never seen the memory usage drop by 16MB
> though. I'm building an application that needs to consistently run at least
> 12 hours making lots of web service calls and this issue is just killing me.
>
> Thanks again Axel. I've been poring over my code looking for leaks, and at
> this point I'm pretty convinced this exposes a Xamarin issue.
>
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/Simple-project-with-massive-memory-leak-tp5011249p5014051.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Sridharan Srinivasan
Alias Sri
Ph:(65)98255785/(65)63922439
www.arshu.com


More information about the Monodroid mailing list