Is there a method to clear memory cache in C#.NET?

Is there a method to clear memory cache in C#.NET?

am 11.10.2007 04:21:28 von Fir5tSight

I've found memory leakage in my program that causes the program to be
very slow. I rebooted the computer and the program went away.

Is there a method in C#.NET that does the same thing as rebooting the
computer? Such as clearing memory cache? I'll need to use it to
resolve the slowness problem in my program.

Thanks!

Re: Is there a method to clear memory cache in C#.NET?

am 11.10.2007 05:57:19 von notmyfirstname

Curious,

If you have a memory leak in your program, is it then not better irst to
search for that. It cannot be of course that somebody is besing writting a
letter with Word and your program which is running as well closes the
program.

In this newsgroup are enough people active to help you with that, however if
your program is written in C#, you have a wider audience in the newsgroup

news:\\microsoft.public.dotnet.languages.Csharp

Cor

Re: Is there a method to clear memory cache in C#.NET?

am 15.10.2007 19:17:56 von RAD

On Wed, 10 Oct 2007 19:21:28 -0700, Curious
wrote:

>I've found memory leakage in my program that causes the program to be
>very slow. I rebooted the computer and the program went away.
>
>Is there a method in C#.NET that does the same thing as rebooting the
>computer? Such as clearing memory cache? I'll need to use it to
>resolve the slowness problem in my program.
>
>Thanks!

Hi Friend,

It's better to treat diseases rather than symptoms. I suggest you use
a profiler like ANTS (http://www.red-gate.com) or dot-trace
(http://www.jetbrains.com) to find out exactly where the leak is
occuring

--
http://bytes.thinkersroom.com