Re: C# System.String Memory Usage



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



.



Relevant Pages

  • Re: Stand Alone EXE
    ... > Unless you are on a completely clean PC, installing the .Net framework can ... Then your customers are calling you for support with a ...
    (microsoft.public.dotnet.general)
  • How do I call win32 dll from .NET frame work? say kernal32.dll
    ... I heard that we have to use Runtime Callable Wrapper for calling COM Components from .NET framework. ... but what about win32 dll ... Balamurali C ...
    (microsoft.public.dotnet.framework)
  • The request failed with HTTP status 502: Bad Gateway
    ... I have a running application built in VS2003 and using Net Framework ... Is there any special setting I need to do while calling a web service? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forcing a Form to always be refreshed
    ... Calling the VB Timer doesn't mean anything ... It depends on your loop I guess. ...
    (microsoft.public.vb.winapi)
  • Re: Saturn loosing oil?
    ... often the car has no power. ... timer to reach 60 miles per hour. ... Calling an illegal alien an "undocumented worker" is like calling a ...
    (rec.autos.makers.saturn)