Click here to Skip to main content
15,894,720 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to dispose all resources after closing the application ? Pin
Dave Kreskowiak18-Jul-13 9:35
mveDave Kreskowiak18-Jul-13 9:35 
GeneralRe: How to dispose all resources after closing the application ? Pin
Eddy Vluggen15-Jul-13 0:30
professionalEddy Vluggen15-Jul-13 0:30 
AnswerRe: How to dispose all resources after closing the application ? Pin
jschell15-Jul-13 8:45
jschell15-Jul-13 8:45 
QuestionMessage Transfer from Pc to micro controller Pin
Member 402509113-Jul-13 21:41
Member 402509113-Jul-13 21:41 
AnswerRe: Message Transfer from Pc to micro controller Pin
David Knechtges15-Jul-13 3:03
David Knechtges15-Jul-13 3:03 
QuestionGC and memory Pin
Mehdi Gholam13-Jul-13 20:19
Mehdi Gholam13-Jul-13 20:19 
AnswerRe: GC and memory Pin
AlphaDeltaTheta13-Jul-13 21:16
AlphaDeltaTheta13-Jul-13 21:16 
AnswerRe: GC and memory Pin
Dave Kreskowiak14-Jul-13 3:37
mveDave Kreskowiak14-Jul-13 3:37 
Task Manager is showing you the memory the the .NET CLR has RESERVED for your application, not how much it's actually using. The same goes for VMMAP. Neither tool goes into any of the details of the managed runtime memory manager.

If you want to see how much memory your app is really using at any point in time, open PerfMon and use the .NET Memory counters in there.

The memory that your application uses, when freed, gets returned to the Managed Heap in the .NET CLR, not to Windows. This is because allocations for future objects are faster is there is memory available in the managed heap. If not, then a block of memory has to be allocated from Windows, put in the managed heap, then your object allocated. This takes more time.

Unless you're really worried about how much memory your app is actually using, you're worried about nothing. The .NET CLR memory manager is very good at it's job and tunes itself depending on how your app is running. It's constantly watching how your app allocates and frees memory and adjusts the size of the managed heap every once in a while. But, if Windows needs the memory back, the .NET CLR will happily return any memory it can to Windows.

GeneralRe: GC and memory Pin
Mehdi Gholam14-Jul-13 21:44
Mehdi Gholam14-Jul-13 21:44 
GeneralRe: GC and memory Pin
BillWoodruff25-Jul-13 1:20
professionalBillWoodruff25-Jul-13 1:20 
GeneralRe: GC and memory Pin
Dave Kreskowiak25-Jul-13 1:23
mveDave Kreskowiak25-Jul-13 1:23 
AnswerRe: GC and memory Pin
Bernhard Hiller14-Jul-13 21:35
Bernhard Hiller14-Jul-13 21:35 
AnswerRe: GC and memory Pin
Thomas Haller15-Jul-13 3:03
Thomas Haller15-Jul-13 3:03 
QuestionGUI and database synchronization Pin
leone13-Jul-13 9:28
leone13-Jul-13 9:28 
AnswerRe: GUI and database synchronization Pin
Eddy Vluggen14-Jul-13 2:53
professionalEddy Vluggen14-Jul-13 2:53 
GeneralRe: GUI and database synchronization Pin
leone14-Jul-13 22:06
leone14-Jul-13 22:06 
GeneralRe: GUI and database synchronization Pin
Eddy Vluggen15-Jul-13 0:30
professionalEddy Vluggen15-Jul-13 0:30 
AnswerRe: GUI and database synchronization Pin
Nicolás Marzoni16-Jul-13 9:44
Nicolás Marzoni16-Jul-13 9:44 
QuestionC# Using random Function Pin
Pintu Saw13-Jul-13 4:39
Pintu Saw13-Jul-13 4:39 
AnswerRe: C# Using random Function Pin
Dave Kreskowiak13-Jul-13 4:53
mveDave Kreskowiak13-Jul-13 4:53 
AnswerRe: C# Using random Function Pin
NotPolitcallyCorrect13-Jul-13 5:15
NotPolitcallyCorrect13-Jul-13 5:15 
AnswerRe: C# Using random Function Pin
harold aptroot13-Jul-13 5:52
harold aptroot13-Jul-13 5:52 
SuggestionRe: C# Using random Function Pin
Matt T Heffron15-Jul-13 8:21
professionalMatt T Heffron15-Jul-13 8:21 
GeneralRe: C# Using random Function Pin
harold aptroot15-Jul-13 8:29
harold aptroot15-Jul-13 8:29 
AnswerRe: C# Using random Function Pin
Kevin Bewley15-Jul-13 1:07
Kevin Bewley15-Jul-13 1:07 

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.