Don't understand keepalive...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi!
I've got a problem with the GC.keepalive function,
as used in the examples at
http://msdn2.microsoft.com/en-US/library/system.gc.keepalive.aspx
..
There they have a class "Example", construct it and call a method,
during which it may get collected.
Why would it get collected, before the last method call ends?
Is this a bug on the GC or is there a resson for it?

Lots of greetings!
Volker
--
For email replies, please substitute the obvious.
.



Relevant Pages

  • Re: Dont understand keepalive...
    ... if a object is passed into a native method the GC cannot track it. ... Is this a bug on the GC or is there a resson for it? ... For email replies, please substitute the obvious. ...
    (microsoft.public.dotnet.general)
  • Re: Symbolic manipulation with Sqrt[-1] ?
    ... It is a bug because any person reasonably familiar with mathematics expects a behavior that is different from the behavior of Mathematica. ... By taking a command that looks like "substitute -I for I in expression z" and noticing that it probably also means "substitute I for -I in expression z". ... Thus without a great deal of effort one can write a program, let us call it CorrectSubstitutionin Mathematica that fixes this and similar bugs. ... any time you try to find instances of a non-trivial subexpression, there is a question of how you will find them. ...
    (sci.math.symbolic)
  • Re: Hard coded enc key
    ... If you can read the executable you can reverse engineer the key. ... until the key goes in the decryption routine. ... For email replies, please substitute the obvious. ...
    (sci.crypt)
  • Re: separate cell values with formulas - can this be improved?
    ... I found my bug and made corrections/suggestions for it in the other ... The OP seems to have things under control but I was also thinking of ... of SUBSTITUTE. ... Microsoft Excel MVP ...
    (microsoft.public.excel.worksheet.functions)
  • RE: Re: HijackClick 3
    ... > Just substitute as follows: ... I don't think there has been a bug in about ten ... Microsoft can remove the threat from all users right now, today, ...
    (Bugtraq)