Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

We have a .NET application that is partly VB.NET(1 component) and partly C# (2 components) and seems to use a lot of page files. The appln. is system and memory intensive (does continuous drawing). The PF usage in the task manager grows exponentially while running the appln. and after a point the PF usage reaches the limit and get an UnKnown: System.OutOfMemory Exception. This crashes the application. Are there methods to reduce PF usage for an appln ?

 

Thanks in advance,

Linesh

  • Administrators
Posted

Page file usage just reflects the demands on the system's memory and it isn't down to a single application to control this.

You would probably get better mileage trying to figure out why you application is using so many resources.

If you are doing a lot of graphics drawing you are probably allocating lots of pens, brushs, graphics objects etc. make sure you are disposing of these things when they are finished with.

You may want to have a look at CLR Profiler or similar tools to help identify where allocations are being made / leaks are happening

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...