Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: Find highest number using for-loops and arrays Pin
Richard MacCutchan15-May-17 20:46
mveRichard MacCutchan15-May-17 20:46 
QuestionUTC Time Conversion Pin
milo-xml15-May-17 6:32
professionalmilo-xml15-May-17 6:32 
AnswerRe: UTC Time Conversion Pin
Richard MacCutchan15-May-17 7:56
mveRichard MacCutchan15-May-17 7:56 
GeneralRe: UTC Time Conversion Pin
milo-xml15-May-17 8:00
professionalmilo-xml15-May-17 8:00 
AnswerRe: UTC Time Conversion Pin
Richard Deeming15-May-17 7:58
mveRichard Deeming15-May-17 7:58 
GeneralRe: UTC Time Conversion Pin
milo-xml15-May-17 8:04
professionalmilo-xml15-May-17 8:04 
QuestionProblem in deserializing a JSON object in C# Pin
Farhad Eft15-May-17 3:07
Farhad Eft15-May-17 3:07 
AnswerRe: Problem in deserializing a JSON object in C# Pin
Dave Kreskowiak15-May-17 4:24
mveDave Kreskowiak15-May-17 4:24 
AnswerRe: Problem in deserializing a JSON object in C# Pin
Richard MacCutchan15-May-17 5:54
mveRichard MacCutchan15-May-17 5:54 
GeneralRe: Problem in deserializing a JSON object in C# Pin
Richard Deeming15-May-17 7:48
mveRichard Deeming15-May-17 7:48 
GeneralRe: Problem in deserializing a JSON object in C# Pin
Richard MacCutchan15-May-17 7:55
mveRichard MacCutchan15-May-17 7:55 
GeneralRe: Problem in deserializing a JSON object in C# Pin
Richard Deeming15-May-17 7:59
mveRichard Deeming15-May-17 7:59 
AnswerRe: Problem in deserializing a JSON object in C# Pin
Richard Deeming15-May-17 7:52
mveRichard Deeming15-May-17 7:52 
GeneralRe: Problem in deserializing a JSON object in C# Pin
Farhad Eft16-May-17 20:21
Farhad Eft16-May-17 20:21 
QuestionC# hierarchical data structure and .NET garbage collection ? Pin
BillWoodruff14-May-17 14:40
professionalBillWoodruff14-May-17 14:40 
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 

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.