J
John Baro
I have object A on a form
In a method on the form I add object a to collection B which is local to
that method.
When that method is finished object B is out of scope but A is still in
scope because it belongs to the form.
Next time the GC runs will it see object B as collectable?
Methinks yes.
Or will it have to wait until B and all its refs and all their refs etc..
are out of scope?
No?
TIA
JB
What is the question?
That is the question.
In a method on the form I add object a to collection B which is local to
that method.
When that method is finished object B is out of scope but A is still in
scope because it belongs to the form.
Next time the GC runs will it see object B as collectable?
Methinks yes.
Or will it have to wait until B and all its refs and all their refs etc..
are out of scope?
No?
TIA
JB
What is the question?
That is the question.