Click here to Skip to main content
15,912,021 members
Home / Discussions / C#
   

C#

 
GeneralRe: XmlDataDocument and null values Pin
Robert M Greene19-Oct-05 8:49
Robert M Greene19-Oct-05 8:49 
QuestionOpening child forms without focus Pin
Hitesh Salian19-Oct-05 4:48
Hitesh Salian19-Oct-05 4:48 
AnswerRe: Opening child forms without focus Pin
kmuthuk9-Jan-07 9:06
kmuthuk9-Jan-07 9:06 
QuestionHow to determine hard drives? Pin
wasife19-Oct-05 4:25
wasife19-Oct-05 4:25 
AnswerRe: How to determine hard drives? Pin
Judah Gabriel Himango19-Oct-05 5:22
sponsorJudah Gabriel Himango19-Oct-05 5:22 
AnswerRe: How to determine hard drives? Pin
leppie19-Oct-05 5:55
leppie19-Oct-05 5:55 
QuestionOne finalize question Pin
zhangxinghai19-Oct-05 3:32
zhangxinghai19-Oct-05 3:32 
AnswerRe: One finalize question Pin
Rob Philpott19-Oct-05 7:16
Rob Philpott19-Oct-05 7:16 
It's a two-pass process, first establishing what is garbage, then secondly collecting it.

When garbage collection kicks in, the CLR determines what is and what is not garbage by following object references from initial 'live' roots to one object to the next. All objects are considered garbage unless they are marked otherwise by this process. If the inner object is only referenced by the outer object, and the outer object never gets marked as 'live', then both objects are considered garbage.

The GC will then go on to collect them and you can't make any assumptions about in which order (I believe its in the order they are in memory).

Are you assuming that objects are deleted in Finalize in a similar manner to the general practice in a C++ destructor? This is not the case. My understanding is that Finalize is provided more to free up CLR resources than referenced objects.




Rob Philpott.
GeneralRe: One finalize question Pin
Dan Neely19-Oct-05 7:48
Dan Neely19-Oct-05 7:48 
Questionquestion about string "\" sign Pin
Green Fuze19-Oct-05 3:25
Green Fuze19-Oct-05 3:25 
AnswerRe: question about string "\" sign Pin
User 665819-Oct-05 4:07
User 665819-Oct-05 4:07 
GeneralRe: question about string "\" sign Pin
Daniel Grunwald19-Oct-05 6:26
Daniel Grunwald19-Oct-05 6:26 
GeneralRe: question about string "\" sign Pin
User 665819-Oct-05 6:36
User 665819-Oct-05 6:36 
AnswerRe: question about string "\" sign Pin
Michael P Butler19-Oct-05 10:08
Michael P Butler19-Oct-05 10:08 
QuestionSerial Ports in C# Pin
Jethro6319-Oct-05 2:49
Jethro6319-Oct-05 2:49 
AnswerRe: Serial Ports in C# Pin
Gavin Jeffrey19-Oct-05 4:09
Gavin Jeffrey19-Oct-05 4:09 
GeneralRe: Serial Ports in C# Pin
Jethro6319-Oct-05 6:58
Jethro6319-Oct-05 6:58 
Questionwhat does it need the vector cryptic.IV Pin
Sasuko19-Oct-05 1:10
Sasuko19-Oct-05 1:10 
AnswerRe: what does it need the vector cryptic.IV Pin
leppie19-Oct-05 1:42
leppie19-Oct-05 1:42 
AnswerRe: what does it need the vector cryptic.IV Pin
Doctor Nick19-Oct-05 10:20
Doctor Nick19-Oct-05 10:20 
QuestionWindows Service Urgent!!! Pin
Talktorajeev18-Oct-05 23:34
Talktorajeev18-Oct-05 23:34 
AnswerRe: Windows Service Urgent!!! Pin
leppie19-Oct-05 0:02
leppie19-Oct-05 0:02 
GeneralRe: Windows Service Urgent!!! Pin
Talktorajeev19-Oct-05 0:18
Talktorajeev19-Oct-05 0:18 
GeneralRe: Windows Service Urgent!!! Pin
leppie19-Oct-05 1:38
leppie19-Oct-05 1:38 
GeneralRe: Windows Service Urgent!!! Pin
Talktorajeev19-Oct-05 2:11
Talktorajeev19-Oct-05 2:11 

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.