By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

memory leak vb.net

P: n/a
rs
Hello,

I am new to vb.net. I read the vb.net has the garbage collection
feature. I am developing a chat program. I was monitoring the memory
used by the program. the program starts with 10mb of memory usage when
it is on the system tray. when a form is created it jumps to 23 mb and
it keeps going up during typing. when the window is close it does not
go back to 10mb. when the window is closed I abort the associated
thread. Am I missing anything?

Thanks

Ahmed

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"rs" <ah*******@gmail.com> schrieb:
I am new to vb.net. I read the vb.net has the garbage collection
feature. I am developing a chat program. I was monitoring the memory
used by the program. the program starts with 10mb of memory usage when
it is on the system tray. when a form is created it jumps to 23 mb and
it keeps going up during typing. when the window is close it does not
go back to 10mb. when the window is closed I abort the associated
thread. Am I missing anything?


I assume you took a look at the task manager's to watch the application's
memory usage. These values are not accurate, which means, they don't show
you how much memory is really used by the objects/... of your application.
The CLR doesn't totally free the memory which an application doesn't need
any more, and then requests it again when the application needs more memory.
Instead, the memory stays associated with the process, at least for some
time, which is mainly the case for performance/management reasons.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.