Groups | Blog | Home
all groups > vb.net > february 2006 >

vb.net : Release Memory


S Shulman
2/2/2006 6:57:27 PM
Hi

I am looking for ways to reduce memory consumption by the VB.NET program. I
use a spell checker that consume too much memory and when it doesn't work I
set it to Nothing, I then call the Garbage Collector GC.Collect but it
doesn't seem to help

Any suggestions?

Thank you,
Shmuel Shulman

Cor Ligthert [MVP]
2/3/2006 12:00:00 AM
Shulman,

What is the problem with consuming memory. It can be a problem as to much
handles are consumed, however existing memory you can use until there is
still one byte.

By the way, the used memory showed in the taskmemory has a very long delay
and says mostly nothing more than a very insecure indication.

Cor

S Shulman
2/3/2006 12:00:00 AM
Thanks for your reply,

All I know that is slows down the system, I also get 'Out of Memory'
Exceptions and finally, if the problem is the handles (and that it what
slows the system) then what is the solution there?

Cheers,
Shmuel


[quoted text, click to view]

S Shulman
2/3/2006 12:31:45 PM
The exception was raised when I run a number of instances of this high
consuming memory program.
Thank you,
Shmuel

[quoted text, click to view]

Cor Ligthert [MVP]
2/3/2006 1:05:24 PM
S Shulman,

An Out of Memory extention has in most situations an endless loop, are you
sure that that is not in your program. Simple adding an index to a combobox
inside a combobox change event can already be the reason for that.

Cor

AddThis Social Bookmark Button