[IronPython] static source2handler mapping causing memory leaks

Kamil Dworakowski kamil at dworakowski.name
Tue Dec 18 06:25:40 PST 2007


>
> Why not make values of the mapping weak references too?


Weak ref for value is bad because that would allow the handler to be garbage
collected even though the sender is alive. That problem is harder than I
thought initially.

Why not store the subscribers on a list attached to the source object?

--
Kamil Dworakowski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20071218/df77349d/attachment.html 


More information about the Users mailing list