Click here to Skip to main content
15,918,109 members
Home / Discussions / C#
   

C#

 
AnswerRe: Garbage collection problem Pin
Dan Neely26-Jan-07 4:40
Dan Neely26-Jan-07 4:40 
AnswerRe: Garbage collection problem Pin
Colin Angus Mackay26-Jan-07 4:43
Colin Angus Mackay26-Jan-07 4:43 
GeneralRe: Garbage collection problem Pin
S. Senthil Kumar26-Jan-07 5:36
S. Senthil Kumar26-Jan-07 5:36 
GeneralRe: Garbage collection problem Pin
Colin Angus Mackay26-Jan-07 5:45
Colin Angus Mackay26-Jan-07 5:45 
GeneralRe: Garbage collection problem Pin
Guffa26-Jan-07 6:18
Guffa26-Jan-07 6:18 
GeneralRe: Garbage collection problem Pin
S. Senthil Kumar26-Jan-07 6:45
S. Senthil Kumar26-Jan-07 6:45 
AnswerRe: Garbage collection problem Pin
Judah Gabriel Himango26-Jan-07 5:56
sponsorJudah Gabriel Himango26-Jan-07 5:56 
AnswerRe: Garbage collection problem Pin
Dave Kreskowiak26-Jan-07 6:06
mveDave Kreskowiak26-Jan-07 6:06 
As a footnote to what the others have posted, they've all said that Task Manager show you how much memory your application has been allocated. You might be wondering why that number stays so high if you free up the memory in your app.

Well, your application doesn't get it's memory from Windows. It gets memory from the .NET Common Lanugage Runtime, or if your familiar with Java, that refers to a virtual machine. The virtual machine (.NET CLR) aquires blocks of memory from Windows and it's put into a pool called the Managed Heap, actually a couple of different pools, but for simplicity... Your application allocates objects by requesting blocks of memory from the Managed Heap. When these objects aren't needed any more, the memory is freed back to the Managed Heap, not Windows. If the CLR detects that it's not going to need as much memory as it has reserved, it shrinks the Managed Heap and returns that memory back to Windows.

I hope that makes it a little easier to understand.


Dave Kreskowiak
Microsoft MVP - Visual Basic


AnswerRe: Garbage collection problem Pin
t4ure4n29-Jan-07 0:13
t4ure4n29-Jan-07 0:13 
QuestionText file handling issue Pin
Andrew Em26-Jan-07 3:21
Andrew Em26-Jan-07 3:21 
AnswerRe: Text file handling issue Pin
Colin Angus Mackay26-Jan-07 3:52
Colin Angus Mackay26-Jan-07 3:52 
AnswerRe: Text file handling issue Pin
bobsugar22226-Jan-07 4:20
bobsugar22226-Jan-07 4:20 
GeneralAbout the pre tag Pin
Guffa26-Jan-07 8:31
Guffa26-Jan-07 8:31 
GeneralRe: About the pre tag Pin
bobsugar22226-Jan-07 8:59
bobsugar22226-Jan-07 8:59 
GeneralRe: Text file handling issue Pin
Andrew Em28-Jan-07 20:24
Andrew Em28-Jan-07 20:24 
Questionexcel in C# Pin
barak16048726-Jan-07 3:02
barak16048726-Jan-07 3:02 
AnswerRe: excel in C# Pin
Dustin Metzgar26-Jan-07 4:50
Dustin Metzgar26-Jan-07 4:50 
QuestionNeed help in creating an XML file from a Dataset using a schema file Pin
csharpguyfromde26-Jan-07 2:31
csharpguyfromde26-Jan-07 2:31 
AnswerRe: Need help in creating an XML file from a Dataset using a schema file Pin
bobsugar22226-Jan-07 3:12
bobsugar22226-Jan-07 3:12 
GeneralRe: Need help in creating an XML file from a Dataset using a schema file Pin
csharpguyfromde26-Jan-07 3:16
csharpguyfromde26-Jan-07 3:16 
GeneralRe: Need help in creating an XML file from a Dataset using a schema file [modified] Pin
bobsugar22226-Jan-07 3:41
bobsugar22226-Jan-07 3:41 
GeneralRe: Need help in creating an XML file from a Dataset using a schema file Pin
Abisodun26-Jan-07 4:42
Abisodun26-Jan-07 4:42 
GeneralRe: Need help in creating an XML file from a Dataset using a schema file Pin
csharpguyfromde26-Jan-07 5:35
csharpguyfromde26-Jan-07 5:35 
GeneralRe: Need help in creating an XML file from a Dataset using a schema file Pin
Abisodun26-Jan-07 8:13
Abisodun26-Jan-07 8:13 
GeneralRe: Need help in creating an XML file from a Dataset using a schema file Pin
csharpguyfromde26-Jan-07 8:37
csharpguyfromde26-Jan-07 8:37 

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.