Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# hierarchical data structure and .NET garbage collection ? Pin
Luc Pattyn14-May-17 15:25
sitebuilderLuc Pattyn14-May-17 15:25 
GeneralRe: C# hierarchical data structure and .NET garbage collection ? Pin
BillWoodruff14-May-17 20:44
professionalBillWoodruff14-May-17 20:44 
GeneralRe: C# hierarchical data structure and .NET garbage collection ? PinPopular
lmoelleb14-May-17 23:31
lmoelleb14-May-17 23:31 
GeneralRe: C# hierarchical data structure and .NET garbage collection ? Pin
Luc Pattyn14-May-17 23:40
sitebuilderLuc Pattyn14-May-17 23:40 
GeneralRe: C# hierarchical data structure and .NET garbage collection ? Pin
Pete O'Hanlon14-May-17 23:55
mvePete O'Hanlon14-May-17 23:55 
GeneralRe: C# hierarchical data structure and .NET garbage collection ? Pin
BillWoodruff15-May-17 5:40
professionalBillWoodruff15-May-17 5:40 
GeneralRe: C# hierarchical data structure and .NET garbage collection ? Pin
OriginalGriff15-May-17 6:12
mveOriginalGriff15-May-17 6:12 
AnswerRe: C# hierarchical data structure and .NET garbage collection ? Pin
kalberts23-May-17 22:38
kalberts23-May-17 22:38 
I found a really great description of dotNet garbage collection in CLR via C#[^].

That book turned me around about automatic garbage collection. At least half a dozen times I said to myself something like "Hey, that's smart! I would never have thought of that if I were to manage the heap myself!" I used to be sceptical about automatic GC - now I am sceptical to those who claim they can do better themselves. It is like an optimizing compiler vs. assembly code: The optimizer will discover a lot of tricks that the assembler coder wont.

The only problem remaining now is that you believe that you have removed the last reference to that 1 Gbyte data structure, and you are waiting for ages for it to go away, forgetting that you still have a reference to it in some static struct holding, say, user preferences. (Maybe you needed that reference e.g. during initialization, but never after that.) This is similar to, say, forgetting to close files.

(There was a similar situation in old style Unix file systems, where anyone with read access to a file could create another link to it, preventing it from being deleted: When the creator/owner removed his last link, he lost control over it; your 'secret' link might be the only access path to the file, keeping it alive, keeping disk space from being released. But the owner is still the same, so he will have to pay for the disk storage! - I think remedies for handling this was introduced many years ago, but in the first years of Unix, it was a real problem.)
QuestionHelp my C# Pin
Arman Petrosyan12-May-17 9:27
Arman Petrosyan12-May-17 9:27 
AnswerRe: Help my C# Pin
NotPolitcallyCorrect12-May-17 9:48
NotPolitcallyCorrect12-May-17 9:48 
AnswerRe: Help my C# Pin
Patrice T12-May-17 15:17
mvePatrice T12-May-17 15:17 
QuestionHow should i do tracing in c# using zipkin Pin
yeswanthkumar11-May-17 19:18
yeswanthkumar11-May-17 19:18 
AnswerRe: How should i do tracing in c# using zipkin Pin
Chris Quinn11-May-17 20:57
Chris Quinn11-May-17 20:57 
GeneralRe: How should i do tracing in c# using zipkin Pin
yeswanthkumar11-May-17 21:05
yeswanthkumar11-May-17 21:05 
AnswerRe: How should i do tracing in c# using zipkin Pin
Pete O'Hanlon11-May-17 21:08
mvePete O'Hanlon11-May-17 21:08 
AnswerRe: How should i do tracing in c# using zipkin Pin
Gerry Schmitz12-May-17 8:42
mveGerry Schmitz12-May-17 8:42 
QuestionHow to Transfer xml file from remote server to another Pin
Member 1265997911-May-17 0:16
Member 1265997911-May-17 0:16 
QuestionRe: How to Transfer xml file from remote server to another Pin
Richard MacCutchan11-May-17 0:39
mveRichard MacCutchan11-May-17 0:39 
AnswerRe: How to Transfer xml file from remote server to another Pin
John C Rayan11-May-17 5:50
professionalJohn C Rayan11-May-17 5:50 
GeneralRe: How to Transfer xml file from remote server to another Pin
Member 1265997911-May-17 17:28
Member 1265997911-May-17 17:28 
GeneralRe: How to Transfer xml file from remote server to another Pin
dlhale11-May-17 19:05
dlhale11-May-17 19:05 
GeneralRe: How to Transfer xml file from remote server to another Pin
Member 1265997911-May-17 19:40
Member 1265997911-May-17 19:40 
GeneralRe: How to Transfer xml file from remote server to another Pin
Richard MacCutchan11-May-17 21:09
mveRichard MacCutchan11-May-17 21:09 
Questionnotification text click event Pin
Member 1319194310-May-17 6:02
Member 1319194310-May-17 6:02 
AnswerRe: notification text click event Pin
NotPolitcallyCorrect10-May-17 6:10
NotPolitcallyCorrect10-May-17 6:10 

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.