also, webclient is a wrapper of this: http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx
and backgroundworker. so. Stop using it. Use the smaller pieces. That's my advice. However, I know the problems you are gonna face. This is just the tip. So i really suggest you hire a pro before you go putting MORE bad code out there. Not intending to be condescending but there is so much you don't know about c# obviously and you are gonna go through such frustrations and waste so much money. Just hire someone. On Sat, Nov 26, 2011 at 9:02 PM, Sayed Arian Kooshesh <koosh...@gmail.com> wrote: > 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 <sri...@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 >> <koosh...@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@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@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 > -- Extreme Knowledge is not something for which he programs a computer but for which his computer is programming him. -Wozniak _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid