Re: memory leak or not?



Willy,

Everyone knows by now that Jon is right when he said "an instance of a
type
CAN get GC'd BEFORE the reference, pointing to this instance, leaves it's
lexicaly-enclosing method scope".

But nobody including me has denied that, as well not Marina, who he was
correcting with his message.

Cor

"Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx> schreef in bericht
news:OnYasyCAHHA.3836@xxxxxxxxxxxxxxxxxxxxxxx

"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:uc23j2BAHHA.3560@xxxxxxxxxxxxxxxxxxxxxxx
| Jon,
|
| > You are writing here in a style which is *frequently* hard to
| > understand - and not just by me.
| >
| Said by probably the record holder of long newsgroups threads.
|
| The normal (question) threads where I am active in are mostly not longer
| than 3.
| One for the question,
| One for my answer
| One for the thanks I get for the answer.
|
| I am in this not speaking about this newsgroup because here I am not so
| active as in 3 other major dotNet newsgroups.
|
| Cor
|
|

Cor,

Everyone knows by now that Jon is right when he said "an instance of a
type
CAN get GC'd BEFORE the reference, pointing to this instance, leaves it's
lexicaly-enclosing method scope".
So please, let this thread die if you can agree with this, else start a
new
thread in which you explain why you think this is not the case.

Willy.





.



Relevant Pages

  • Re: vbs output to txt file
    ... the reference count to that object will be decremented. ... As does going out of scope:) ... You are religiously setting objects to nothing and not ... and so am seriously lacking in both scripting expertise ...
    (microsoft.public.scripting.wsh)
  • Re: Lock-free reference counting
    ... The scope of t is the entire function foo, ... The reference's lifetime is considerably shorter than ... The only way for it to collect it is if no reference is ... Bindings are introduced by various language constructs. ...
    (comp.programming)
  • Re: Lock-free reference counting
    ... scope and value lifetimes are completely separate concepts. ... reference is dropped, then the object could be immediately destroyed ... the mere act of destroying ... so scope-based reference counting keeps values alive a lot longer ...
    (comp.programming)
  • Re: Article of interest: Python pros/cons for the enterprise
    ... create a less flexible Python feature that achieves the ... you can create a temporary object whose reference count will become ... especially in a complex multi-statement scope. ... If you can then request that arbitrary actions be taken automatically when those events happen, you can pair up resource acquisitions and releases very easily. ...
    (comp.lang.python)
  • Re: Scoping in VB.Net
    ... You may be slightly confused about scope, ... As an example of what I mean, think about memory leaks using a language ... variables are not value types (but reference types) and are declared on ... The Windows OS has a reference to it via a "Handle". ...
    (microsoft.public.dotnet.languages.vb)