D
Daniel Billingsley
I don't know where I got the idea, from reading it somewhere, or from some
speaker, or maybe discussion with a colleague.. but I seem to remember the
statement that heavy use of delegates has a cost in that there's so many
cross-references which can make garbage collection difficult. I seem to
recall the issue being that the references via the delegates don't go away
quickly when an object is discarded.
In particular I am considering the scenario described in this MSDN article
if anyone wants to take the time to read it.
http://www.msdn.microsoft.com/vbasi...library/en-us/dnadvnet/html/vbnet12232003.asp
I guess the two big questions I have are
1) is this really true (in general and in the specific scenario of the
article) [is that two questions?]
2) is there a standard practice or pattern for UNhooking the delegates if
that's necessary
..
speaker, or maybe discussion with a colleague.. but I seem to remember the
statement that heavy use of delegates has a cost in that there's so many
cross-references which can make garbage collection difficult. I seem to
recall the issue being that the references via the delegates don't go away
quickly when an object is discarded.
In particular I am considering the scenario described in this MSDN article
if anyone wants to take the time to read it.
http://www.msdn.microsoft.com/vbasi...library/en-us/dnadvnet/html/vbnet12232003.asp
I guess the two big questions I have are
1) is this really true (in general and in the specific scenario of the
article) [is that two questions?]
2) is there a standard practice or pattern for UNhooking the delegates if
that's necessary
..