Re: C# System.String Memory Usage
- From: "Henning Krause [MVP - Exchange]" <newsgroups_remove@xxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Dec 2006 13:19:15 +0100
Hello,
calling GC.Collect is not a good solution. The .NET Framework calls those methods when necessary, calling it manually will hardly do anything useful (but some bad things...).
One approach here is to look if the strings are being referenced by another object. The SciTech memory profiler is a good start here.
Best regards,
Henning Krause
"Shawn B." <leabre@xxxxxxxx> wrote in message news:eEmqQ0UHHHA.2112@xxxxxxxxxxxxxxxxxxxxxxx
have you tried forcing a GC.Collect(2) just to see if it makes a difference? If so, why not do that on a timer... say, every 15 minutes?
Thanks,
Shawn
.
- Follow-Ups:
- Re: C# System.String Memory Usage
- From: Shawn B.
- Re: C# System.String Memory Usage
- References:
- C# System.String Memory Usage
- From: mwhalber
- Re: C# System.String Memory Usage
- From: John Saunders
- Re: C# System.String Memory Usage
- From: Shawn B.
- C# System.String Memory Usage
- Prev by Date: Re: Generic collections vs. arrays on structs vs. class
- Next by Date: Re: C# System.String Memory Usage
- Previous by thread: Re: C# System.String Memory Usage
- Next by thread: Re: C# System.String Memory Usage
- Index(es):
Relevant Pages
|