Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
QuestionSound Device Properties Pin
jam198216-Sep-08 0:19
jam198216-Sep-08 0:19 
QuestionRegarding Sharepoint Text message Pin
manju#12316-Sep-08 0:13
manju#12316-Sep-08 0:13 
QuestionMemory usage problem Pin
stancrm15-Sep-08 22:59
stancrm15-Sep-08 22:59 
AnswerRe: Memory usage problem Pin
Harvey Saayman15-Sep-08 23:29
Harvey Saayman15-Sep-08 23:29 
GeneralRe: Memory usage problem Pin
Dave Kreskowiak16-Sep-08 2:02
mveDave Kreskowiak16-Sep-08 2:02 
AnswerRe: Memory usage problem Pin
DaveyM6915-Sep-08 23:44
professionalDaveyM6915-Sep-08 23:44 
AnswerRe: Memory usage problem Pin
Frank Horn16-Sep-08 0:12
Frank Horn16-Sep-08 0:12 
AnswerRe: Memory usage problem Pin
Dave Kreskowiak16-Sep-08 2:06
mveDave Kreskowiak16-Sep-08 2:06 
Learn how memory work under the .NET CLR.

What you're seeing in Task Manager, which is a lousy place to look for memory usage by the way, you're seeing what memory the .NET CLR has reserved for your app. Your app may not be using all of this memory, but it's sitting in the .NET CLR Managed memory pool, waiting for your app to allocate some memory for objects or whatnot. When you minimize your app, the .NET CLR looks to see if there is any memory in the Managed Pool that isn't being used by your app and, from what it can tell, isn'tgoing to be used anytime soon. If so, this memory is taken out of the Managed Pool and returned to Windows.

Basically, you're worried about nothing. The .NET CLR is very good at managing it's memory and cooperating with Windows. If Windows needs memory back from the .NET CLR, the CLR is more than happy to scan it's pools to see what it can return to Windows.

...entirely automatically. You don't need to do anything.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Memory usage problem Pin
Dan Neely16-Sep-08 2:12
Dan Neely16-Sep-08 2:12 
QuestionWhy is like that ? [modified] Pin
Mogaambo15-Sep-08 22:35
Mogaambo15-Sep-08 22:35 
AnswerRe: Why is like that ? Pin
N a v a n e e t h15-Sep-08 22:45
N a v a n e e t h15-Sep-08 22:45 
GeneralRe: Why is like that ? Pin
Mogaambo15-Sep-08 23:02
Mogaambo15-Sep-08 23:02 
GeneralRe: Why is like that ? Pin
DaveyM6915-Sep-08 23:23
professionalDaveyM6915-Sep-08 23:23 
GeneralRe: Why is like that ? Pin
Mogaambo15-Sep-08 23:42
Mogaambo15-Sep-08 23:42 
GeneralRe: Why is like that ? Pin
DaveyM6916-Sep-08 0:06
professionalDaveyM6916-Sep-08 0:06 
AnswerRe: Why is like that ? Pin
dojohansen16-Sep-08 2:55
dojohansen16-Sep-08 2:55 
Questionrichtextbox 's DetectUrls property Pin
Lim Yuxuan15-Sep-08 22:22
Lim Yuxuan15-Sep-08 22:22 
AnswerRe: richtextbox 's DetectUrls property Pin
DaveyM6915-Sep-08 22:42
professionalDaveyM6915-Sep-08 22:42 
GeneralRe: richtextbox 's DetectUrls property Pin
Lim Yuxuan15-Sep-08 22:50
Lim Yuxuan15-Sep-08 22:50 
GeneralRe: richtextbox 's DetectUrls property Pin
DaveyM6915-Sep-08 22:58
professionalDaveyM6915-Sep-08 22:58 
Questioni want assing a user define password 2 my project pls help me out Pin
bhargav12315-Sep-08 21:37
bhargav12315-Sep-08 21:37 
AnswerRe: i want assing a user define password 2 my project pls help me out Pin
Harvey Saayman15-Sep-08 21:45
Harvey Saayman15-Sep-08 21:45 
GeneralRe: i want assing a user define password 2 my project pls help me out Pin
#realJSOP15-Sep-08 23:26
professional#realJSOP15-Sep-08 23:26 
GeneralRe: i want assing a user define password 2 my project pls help me out Pin
Harvey Saayman15-Sep-08 23:29
Harvey Saayman15-Sep-08 23:29 
Questioninvalid cast exception Pin
preetpal15-Sep-08 21:09
preetpal15-Sep-08 21:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.