Last post Jan 13, 2010 02:37 PM by machadogj
Jan 13, 2010 01:10 PM|jmadden93|LINK
I'm trying to better understand the life cycle of an object in the .Net framework. My companies Intranet has some custom classes that were written by a vendor that I'm trying to make some modifications to. Specifically I want to set some variables & hashtables
to null when use of the object is done. For now I have this in the dispose event.
Is there any info you can point to that would be good reading on the life cycle of an object in the .Net framework? I.e. what order do the events fire in? OnInit, Initialize, finalize Dispose, etc. I have the ASP.net page lifecycle but I'm not looking
If you can point me to some reference material I'd appreciate it.
Object oriented design
Jan 13, 2010 01:28 PM|rtpHarry|LINK
The page lifecycle and any control lifecycles are going to be somewhat intertwined in any discussion.
I just found this page which shows complete master page, page, web control and user control lifecycles:
For some of the really rare events you will probably have the best luck searching on MSDN:
Jan 13, 2010 01:30 PM|gokul raghuraman|LINK
Some very good explanation is available here:
If you want to know more about IDisposable, I suggest reading this:
Jan 13, 2010 02:37 PM|machadogj|LINK
You may want to try
enabling tracing. That will give you a better understanding of what's going on with your page.