memory leak vb.net

R

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
 
H

Herfried K. Wagner [MVP]

rs said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top