Click here to Skip to main content
15,917,633 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert VB.NET 2005 to C#.NET 2005 Pin
Daniel Grunwald15-Mar-06 8:27
Daniel Grunwald15-Mar-06 8:27 
AnswerRe: Convert VB.NET 2005 to C#.NET 2005 Pin
mcljava15-Mar-06 11:43
mcljava15-Mar-06 11:43 
AnswerRe: Convert VB.NET 2005 to C#.NET 2005 Pin
mcljava15-Mar-06 12:16
mcljava15-Mar-06 12:16 
AnswerRe: Convert VB.NET 2005 to C#.NET 2005 Pin
Dave Doknjas15-Mar-06 13:48
Dave Doknjas15-Mar-06 13:48 
AnswerRe: Convert VB.NET 2005 to C#.NET 2005 Pin
angelagke15-Mar-06 15:40
angelagke15-Mar-06 15:40 
QuestionTabControl Pin
Sabry190515-Mar-06 5:15
Sabry190515-Mar-06 5:15 
QuestionGarbage Collection needed? Pin
Glenn E. Lanier II15-Mar-06 4:57
Glenn E. Lanier II15-Mar-06 4:57 
AnswerRe: Garbage Collection needed? Pin
Colin Angus Mackay15-Mar-06 6:02
Colin Angus Mackay15-Mar-06 6:02 
Glenn E. Lanier II wrote:
My understanding was the memory would be released when the new'ed object went out of scope (which should be at the end of the while loop). This doesn't seem to be the case, so I stuck in a garbage collection collect call every 1000 iterations. This doesn't seem to have any effect on the memory consumption.


Garbage collection occurs when it needs to. When objects go out of scope they mearly become available for garbage collection.

If you are looking at the memory in the Task Manager then it will be showing the amount it has reserved from the operating system, not the actual amount in use. There are a number of performance counters you can look at for .NET applications. They will give you a more accurate picture of what is going on.

ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

GeneralRe: Garbage Collection needed? Pin
Glenn E. Lanier II15-Mar-06 6:15
Glenn E. Lanier II15-Mar-06 6:15 
AnswerRe: Garbage Collection needed? Pin
Judah Gabriel Himango15-Mar-06 7:06
sponsorJudah Gabriel Himango15-Mar-06 7:06 
GeneralRe: Garbage Collection needed? Pin
Glenn E. Lanier II15-Mar-06 8:39
Glenn E. Lanier II15-Mar-06 8:39 
GeneralRe: Garbage Collection needed? Pin
Judah Gabriel Himango15-Mar-06 9:00
sponsorJudah Gabriel Himango15-Mar-06 9:00 
GeneralRe: Garbage Collection needed? Pin
Glenn E. Lanier II15-Mar-06 8:44
Glenn E. Lanier II15-Mar-06 8:44 
QuestionHow to print a C# form Pin
JuJAngel15-Mar-06 3:56
JuJAngel15-Mar-06 3:56 
AnswerRe: How to print a C# form Pin
Ed.Poore15-Mar-06 6:47
Ed.Poore15-Mar-06 6:47 
GeneralRe: How to print a C# form Pin
JuJAngel18-Mar-06 9:36
JuJAngel18-Mar-06 9:36 
GeneralRe: How to print a C# form Pin
Ed.Poore18-Mar-06 10:45
Ed.Poore18-Mar-06 10:45 
Questionhow to do "123=6 23567=23"??? Pin
gursucan15-Mar-06 3:56
gursucan15-Mar-06 3:56 
AnswerRe: how to do "123=6 23567=23"??? Pin
Guffa15-Mar-06 4:03
Guffa15-Mar-06 4:03 
AnswerRe: how to do "123=6 23567=23"??? Pin
Lju215-Mar-06 9:07
Lju215-Mar-06 9:07 
AnswerRe: how to do "123=6 23567=23"??? Pin
Luis Alonso Ramos15-Mar-06 18:49
Luis Alonso Ramos15-Mar-06 18:49 
QuestionHow to do syntax hightlighting? Pin
SirErugor15-Mar-06 3:26
SirErugor15-Mar-06 3:26 
AnswerRe: How to do syntax hightlighting? Pin
Ed.Poore15-Mar-06 5:41
Ed.Poore15-Mar-06 5:41 
GeneralRe: How to do syntax hightlighting? Pin
SirErugor15-Mar-06 5:48
SirErugor15-Mar-06 5:48 
GeneralRe: How to do syntax hightlighting? Pin
Colin Angus Mackay15-Mar-06 6:06
Colin Angus Mackay15-Mar-06 6:06 

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.