[mono-android] Simple project with massive memory leak

Sayed Arian Kooshesh kooshesh at gmail.com
Sat Nov 26 22:02:24 EST 2011


Hi!
I read your thread. Looked at your code.

If you don't know how to use background worker then you really
shouldn't be programming in this language as it's a core piece. Either
hire a pro, or use java..



On Sat, Nov 26, 2011 at 9:00 PM, SRI <srid68 at gmail.com> wrote:
> Hi,
>
>         Before responding, can you please take the time to read the
> full thread.
>
>         My Response was to Jack's issue about a Massive Memory Leak
> observed in his enclosed project. (Did you see the Project?)
>
>         I just pointed out by googling that WebClient has issues with
> Memory and hence he needs to change his code.
>
>         If you have a concrete suggestion to Jack and me about how we
> can change this code (Please look at his enclosed project) so that we
> avoid memory leak as well as implement the functionality of
> downloading from a Url, i will be gratefull.
>
>         I am not an expert, but I know of only two methods of
> downloading from a Url, either using WebRequest or WebClient and I am
> not sure how BackgroundWorker can improve this.
>
>        Thanks for you help.
>
> Best Regards,
> Sridharan Srinivasan
> Alias Sri.
>
> On Sun, Nov 27, 2011 at 10:20 AM, Sayed Arian Kooshesh
> <kooshesh at gmail.com> wrote:
>> Use backgroundworker, not an async. Silly.
>>
>> you're using very outdated code. What did google threading? Googling
>> code is like sticking your wang in a glory hole. You're not gonna get
>> anything good.And you may come out with more problems than you went in
>> with.
>>
>>
>> So
>> also, webclient i think wraps backgroundworker.
>>
>>
>>
>>
>> http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx
>>
>>
>>
>> Use that. Avoid "threads" in c# cuz they are crap. I know from
>> experience. I've never developed mono-droid just an experienced c#
>> developer.
>> _______________________________________________
>> 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
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Extreme Knowledge is not something for which he programs a computer
but for which his computer is programming him.

-Wozniak


More information about the Monodroid mailing list