[Mono-list] Minor bug
Miguel de Icaza
27 Apr 2003 02:16:49 -0400
> I will fill a bug report but I have another question. Let's say I put
> the brackets and the code compiles. One object's lifetime is only
> within its scope (in this case the said brackets). But, what if this
> class I created here has a delegate called by an event on another
> permanent class beyond this scope?? The GC knows this and won't kill
> my newly created object until the caller class is finalized?
That is correct, your object will remain, as long as there are
references to it.