Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

MEMORY leak

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2009, 07:00 AM
Junior Member
 
Join Date: Jan 2008
Posts: 11
Default MEMORY leak

Hi Erel
On my desktop I have to run web requests continuously. I found memory leak of about 16 kb per request. Please see attached example (HTTP SOAP example with timer).

Reply With Quote
  #2 (permalink)  
Old 02-09-2009, 06:03 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks. I see it too.
It will be fixed in the next version.
Reply With Quote
  #3 (permalink)  
Old 06-17-2009, 09:25 AM
Junior Member
 
Join Date: Jan 2008
Posts: 11
Default HTTP library - MEMORY leak

Hi Erel,

Memory leak is not fixed in version 6.8 !?

Reply With Quote
  #4 (permalink)  
Old 06-17-2009, 06:36 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Identifying memory leaks can be pretty tricky in the .Net Framework.
Memory is only released from time to time by the garbage collector.
Previously because of a bug, disposed objects were not really disposed because of an internal reference. This bug was fixed.
I ran your program for several minutes and the memory stopped increasing after a while (the program continued to run properly).
I added the following lines to be sure that the request and response objects are disposed: (line 79)
Code:
    Response.Close
Request.Dispose
AddObject(
"Request""WebRequest")
Response.Dispose
AddObject(
"Response""WebResponse")
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dim memory usage JamesC Questions (Windows Mobile) 2 07-21-2008 08:09 AM
Images and memory wolfgang Questions (Windows Mobile) 5 02-23-2008 05:08 PM
Performance vs Memory RandomCoder Questions (Windows Mobile) 4 02-10-2008 04:03 PM
How much memory remains? willisgt Questions (Windows Mobile) 1 12-05-2007 07:55 AM
Memory Usage Scubaticus Questions (Windows Mobile) 6 07-03-2007 05:37 PM


All times are GMT. The time now is 08:06 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0