[IronPython] static source2handler mapping causing memory leaks

Kamil Dworakowski kamil at dworakowski.name
Tue Dec 18 15:25:40 CET 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://mail.python.org/pipermail/ironpython-users/attachments/20071218/df77349d/attachment.html>

More information about the Ironpython-users mailing list