Re: HowTo find out the number of references to a reference type?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Klaus Drechsel (klaus.drechsel_at_prosytec.com)
Date: 07/05/04


Date: Mon, 5 Jul 2004 13:47:58 +0200

Thanks for the link
Klaus
"Scott Allen" <bitmask@[nospam].fred.net> schrieb im Newsbeitrag
news:g8tae05nkc7vkl3psmhsaq52mmle1c1n3c@4ax.com...
> Klaus:
>
> Just wanted to give you some additional food for thought:
>
> Finalizers in managed code are not nearly as straightforward as they
> might sound. There are threading and performance issues to consider,
> as well as some best practice guidlines to follow.
>
> See "Finalize and Dispose Explained" in
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/
scalenetchapt05.asp
> for more information.
>
> --
> Scott
> http://www.OdeToCode.com
>
>
> On Thu, 1 Jul 2004 11:56:42 +0200, "Klaus Drechsel"
> <klaus.drechsel@prosytec.com> wrote:
>
> >My Problem:
> >The Function Dispose on a IDisposable shuld be called on the last
reference
> >to this instance. Can I get the number of references. to an object?
> >
> >Klaus Drechsel
> >
>



Relevant Pages

  • Re: perfomance question about bool variables in cxx
    ... "Bob Gezelter" schrieb im Newsbeitrag ... If Klaus were ... > models, presuming that the data is naturally aligned by the compiler, ... > each reference should be a single cache or memory reference. ...
    (comp.os.vms)
  • Re: Girl Genius - 9/16/2009
    ... allegiance to Klaus. ... With the winged castle being a punning ... reference to his being based on the airship Castle Wulfenbach. ... I would make the uninteresting and mundane argument that when the artist or jeweler feels like it, he adds wings. ...
    (rec.arts.sf.written)
  • Re: Girl Genius - 9/16/2009
    ... allegiance to Klaus. ... With the winged castle being a punning ... reference to his being based on the airship Castle Wulfenbach. ...
    (rec.arts.sf.written)
  • Re: Girl Genius Zeetha and Bang
    ... Dorothy J Heydt wrote: ... David Goldfarb wrote: ... reference to Dr. Beetle's journal -- both of them seem to ... think that Klaus had a role in the Other War when Klaus himself ...
    (rec.arts.sf.written)
  • Re: Girl Genius Zeetha and Bang
    ... Dorothy J Heydt wrote: ... reference to Dr. Beetle's journal -- both of them seem to think that Klaus had a role in the Other War when Klaus himself ...
    (rec.arts.sf.written)