Memory Utilization - WeOnlyDo Discussion board

Memory Utilization (wodSFTP / wodSFTP.NET / wodSFTPdll)

by rien van ham, Monday, June 02, 2008, 16:04 (6019 days ago)

Dear all,

I'm developing a kind of 'message-broker' application which logs in on different FTP-servers for more than 1000 times a day. I'm using the wodFtpDLX-component for this. I'm experiencing a very big problem with the application: after the start it uses about 30MB of memory, in a few hours it is increased to about 200MB.
With the debugger I found that the memory is increased every time I call the LISTDIR method (which calls a POPULATETREE(item als DirItems) method).
Even with the following code in POPULATETREE the used memory is increased:
For i = 0 To Items.Count - 1
If Items(i).Type = typeFile Then
'do nothing
end if
Next

The component is shipped with an example-project (c:\Program Files\WeOnlyDo.Com\FtpDLXSamples\VB\Component\2. Folder Tree). On this application I added a timer which presses the connect and disconnect buttons every second. With the taskmanager in sight you can see the memory-usage growing.

Please, what can I do with this problem?

Thank you,
regards,
Rien van Ham


Complete thread: