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

  • Thread starter Thread starter Curious
  • Start date Start date
C

Curious

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!
 
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


Cor
 
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
 
Back
Top