PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Release Memory

Reply

Release Memory

 
Thread Tools Rate Thread
Old 02-02-2006, 06:57 PM   #1
S Shulman
Guest
 
Posts: n/a
Default Release Memory


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


  Reply With Quote
Old 03-02-2006, 08:06 AM   #2
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: Release Memory

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


  Reply With Quote
Old 03-02-2006, 11:05 AM   #3
S Shulman
Guest
 
Posts: n/a
Default Re: Release Memory

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


"Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
news:OKm%23eiJKGHA.3100@tk2msftngp13.phx.gbl...
> 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
>
>



  Reply With Quote
Old 03-02-2006, 12:05 PM   #4
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: Release Memory

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


  Reply With Quote
Old 03-02-2006, 12:31 PM   #5
S Shulman
Guest
 
Posts: n/a
Default Re: Release Memory

The exception was raised when I run a number of instances of this high
consuming memory program.
Thank you,
Shmuel

"Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message
news:%23LWsFoLKGHA.2696@TK2MSFTNGP14.phx.gbl...
>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
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off