Click here to Skip to main content
15,891,033 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSeeking Office Extension for dot net 2003 Pin
Charles Wolfe6-Sep-06 3:07
Charles Wolfe6-Sep-06 3:07 
QuestionToolStrip Docking Events Pin
_NielsB6-Sep-06 3:05
_NielsB6-Sep-06 3:05 
AnswerRe: ToolStrip Docking Events Pin
_NielsB7-Sep-06 3:35
_NielsB7-Sep-06 3:35 
QuestionHelp - Systems, Analysis & Design Pin
Candylc5-Sep-06 18:20
Candylc5-Sep-06 18:20 
QuestionADO.NET create a view of multiple tables (i.e. join) Pin
jpietari5-Sep-06 13:06
jpietari5-Sep-06 13:06 
QuestionShow table fields in drop-down list while in design view (like datagridview) Pin
jpietari5-Sep-06 12:58
jpietari5-Sep-06 12:58 
Questioninhibit garbage collection Pin
mikewinny5-Sep-06 10:05
mikewinny5-Sep-06 10:05 
AnswerRe: inhibit garbage collection Pin
Scott Dorman6-Sep-06 21:39
professionalScott Dorman6-Sep-06 21:39 
The first question would be, why would you want to prevent the garbage collection from running?

mikewinny wrote:
would that class be finalized before any of its references


I don't think so. The runtime doesn't guarantee when the objects will be collected and it doesn't provide any guarantees on the order the collection will occur.

mikewinny wrote:
would it be safe to assume all reference fields are still accessible at finalization time


If you are writing your own finalizer, you shouldn't be accessing other finalizable fields. Again, since the runtime doesn't guarantee any ordering, I would say that it isn't safe to make that assumption.

The Environment.HasShutdownStarted property will tell you if your finalizer has started to run, but not much more than that. It is also only available in .NET 2.0 and later.

Check out the latest updates to my article Implementing IDisposable and the Dispose Pattern Properly[^]. Hopefully, it will answer these questions in a little more detail.

You may also find some additional answers here:

SafeHandle and Constrained Execution Regions[^]
QuestionInstalling VS 2005 in XP Home edition. Pin
nagarajuepuri5-Sep-06 8:29
nagarajuepuri5-Sep-06 8:29 
AnswerRe: Installing VS 2005 in XP Home edition. Pin
Jun Du5-Sep-06 9:37
Jun Du5-Sep-06 9:37 
AnswerRe: Installing VS 2005 in XP Home edition. Pin
Kevin McFarlane6-Sep-06 4:29
Kevin McFarlane6-Sep-06 4:29 
QuestionSaving Settings Pin
mr_lasseter5-Sep-06 3:42
mr_lasseter5-Sep-06 3:42 
AnswerRe: Saving Settings Pin
Jun Du5-Sep-06 9:35
Jun Du5-Sep-06 9:35 
AnswerRe: Saving Settings Pin
Sebastien Lachance7-Sep-06 4:42
Sebastien Lachance7-Sep-06 4:42 
QuestionHow to integrate msxml 6 with my installer? Pin
code4jigar4-Sep-06 19:41
code4jigar4-Sep-06 19:41 
Questionrelation beetwen database classes in .net Pin
hamidreza esmaeily4-Sep-06 18:59
hamidreza esmaeily4-Sep-06 18:59 
QuestionUnexpected two step installation from msi Pin
Gutec4-Sep-06 12:35
Gutec4-Sep-06 12:35 
QuestionTransfer data form webpage to other application Pin
indiakahero4-Sep-06 2:11
indiakahero4-Sep-06 2:11 
QuestionTransfer data form webpage to other application Pin
indiakahero4-Sep-06 2:11
indiakahero4-Sep-06 2:11 
QuestionSetup and Deployment project Pin
Tal S.2-Sep-06 22:29
Tal S.2-Sep-06 22:29 
AnswerRe: Setup and Deployment project Pin
Mike Dimmick3-Sep-06 11:36
Mike Dimmick3-Sep-06 11:36 
QuestionRe: Setup and Deployment project Pin
Tal S.4-Sep-06 21:32
Tal S.4-Sep-06 21:32 
QuestionHow to hook file handling routines. Pin
sundar1561-Sep-06 7:02
sundar1561-Sep-06 7:02 
AnswerRe: How to hook file handling routines. Pin
Dave Kreskowiak1-Sep-06 7:58
mveDave Kreskowiak1-Sep-06 7:58 
GeneralRe: How to hook file handling routines. Pin
sundar1561-Sep-06 8:20
sundar1561-Sep-06 8:20 

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.