Re: c# viewing instantiated objects
Tech-Archive recommends: Fix windows errors by optimizing your registry
I was wondering if there is any way in vs.net to view all of the instantiated
objects for a particular process.
Yes, you can. You will have to do some SOS debugging:
http://blogs.msdn.com/jasonz/archive/2003/10/21/53581.aspx
Here is where you can setup SOS for VS.NET:
http://geekswithblogs.net/rupreet/archive/2005/06/15/43725.aspx
HTH
Erick Sgarbi
www.blog.csharpbox.com
I was wondering if there is any way in vs.net to view all of the
instantiated objects for a particular process. I know c# uses garbage
collection so that means that at some level the system must know the
location and type of every object I instantiate with c#.
My problem is that I have been writing an app for quite some time and
am now nearing completion however as I started stress testing it I
noticed that I am leaking memory. I know that this (in c# anyways)
means that I am holding onto some references of objects that I have
instatiated when I mean for them to be disposed of. I have been
trying
to track down where this could be but I not having much luck. Being
able to see the object I have instantiated would be a big help.
Thanks
Josh Powers
.
Relevant Pages
- Re: SetFocus to a form (class)
... > How do I set the focus to a form after I instantiate it and display using ... HTH, ... Those who need closure ... (microsoft.public.fox.programmer.exchange) - Re: Finalize doesnt run
... If you search for "garbage collection" or "object lifetime" in MSDN and ... > I have a VB.NET DLL, which contains a class I instantiate from a VB 6.0 ... > The instance is named NetTest, ... > When I'm through with it, I execute this line of code in VB 6.0: ... (microsoft.public.dotnet.framework.interop) |
|