EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Serious Memory leak of your samples

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 06/19/2009 01:29:01
by Vladimir Cherniga (Team)

Please specify how exactly you mesured memory leaks ?
Posted: 06/19/2009 03:03:52
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

From the "task manager",memory useage of your sample -FileMon.exe increase everytime we open a new File,never decrease.
You can test it by youself.
Posted: 06/19/2009 03:22:37
by Eugene Mayevski (Team)

Task Manager may not be used for memory leakage detection. As mentioned above, it just lies. You need to use one of specialized tools to analyze memory consumption.

Sincerely yours
Eugene Mayevski
Posted: 06/19/2009 06:29:13
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Yes,Although task manager is not the correct tool to analyze
memory consumption.

But something must be wrong , when a application's memory useage
showed in task manager always increase,never decrease.
Posted: 06/22/2009 09:18:38
by Eugene Mayevski (Team)

Not at all. There are cases (for example, with .NET framework and with some Win32 applications) where a bunch of memory blocks is allocated and then used. It might be released in future (in a day or two of application work).

Sincerely yours
Eugene Mayevski
Posted: 06/22/2009 10:11:20
by Alexander Plas (Team)

Can you post here your EXE file?
Posted: 06/23/2009 03:17:00
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Hi,Just your samples:Filemon. I compile it without any edit.

EveryTime,a new firing callback,memory useage increase,never decrease.
You can see it by youself.
Posted: 06/23/2009 03:49:14
by Alexander Plas (Team)

My EXE file compiled with changed AddToLog function does not show any memory leaks. If you don't want to post your EXE file, please check my one on your computer.

[ Download ]
Posted: 06/24/2009 00:32:55
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Hi,I have test your attach demo:FileMon.exe

Please look at the "task manager" much more carefully, Task Manager show very clearly that:the memory useage of FileMon.exe increase ,never decrease.
Only that the attached sample increase slowly.

You can see the test result by youself very easily.
Posted: 06/24/2009 01:20:36
by Alexander Plas (Team)

Here is ZIP file with four screenshots taken from Task Manager. First shot taken before Set Filter button pressing, second - after one minute, third - after 10 minutes and fourth - after 20 minutes. As you can see on the third and fourth shots memory usage are same. Explain me please what's wrong here with memory consumption.

[ Download ]
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.



Topic viewed 16882 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!