Hi,
Can someone please let me know if, during runtime, without using any counter
in a class (say class constructor), is it possible to find the number of
instances of a particular class (class objects) created and are not garbage
collected?
Thanks,
Naresh
Mattias Sjögren - 07 Nov 2006 19:53 GMT
>Can someone please let me know if, during runtime, without using any counter
>in a class (say class constructor), is it possible to find the number of
>instances of a particular class (class objects) created and are not garbage
>collected?
Not from within the managed code itself. It may be possible with the
native profiling and/or debugging APIs.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.