Re: Dispose(bool), Idisposable, form closing etc.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Nov 21, 2:16 am, Peter Duniho <NpOeStPe...@xxxxxxxxxxxxxxxx> wrote:

[snip]

However, you're right that parameters are treated differently from
local variables, and as long as the parameter references the instance
for the duration of the call to the method, the instance won't be
collected.

[snip]

I don't know if I'm convinced of that. You may have been right the
first time. What made you change your mind? Is there a section in
the CLI specification that talks about this?

Obviously, a parameter can be collected during the execution of an
unmanaged function. That's the most important reason for the
existence of GC.KeepAlive. But, I want to know if a parameter can be
collected before the completion of a managed function. I haven't seen
conclusive documentation that guarentees that it won't. In fact, I
don't see any reason why the runtime couldn't support that
optimization. Comments?

.



Relevant Pages

  • Re: Other JSF options
    ... the point of firm positions of disagreement, so my comments below will be ... <snip stuff there is no use arguing further> ... Nor, AFAIR, did the GAO claim that the M60A3 was "inherently" a better tank ... And of course the reason, most of the reason for the current slip was the ...
    (rec.aviation.military)
  • Re: I know you guys would hate me for this....
    ... usually just snip them. ... the reason why we are responding to it, but merely responding for the sake ... of being sensitive to your cat. ... If Ranmao wants a hug, ...
    (rec.games.computer.ultima.dragons)
  • Re: OT:Thanksgiving
    ... tentative excuse, but not the reason. ... Our new government is founded upon exactly the opposite idea; ... the negro is not equal to the white man; that slavery - subordination to ...
    (comp.lang.cobol)
  • Re: This is absolutely GREAT!!!
    ... Randy, first you back off from one city. ...  That is the reason we have the mess we are in now. ...   you don't like that. ...
    (misc.transport.road)
  • Re: Javascript on the client as an alternative to Perl/PHP/Python on the server
    ... stored while the Internet connection is established and accessed later offline. ... requires CSS, image, JavaScript, Flash, Quicktime support etc. ... I included "not so sophisticated" for a reason. ...
    (comp.lang.javascript)