[Issue 3523] Fiber is not garbage collected properly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 25 05:53:41 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3523



--- Comment #4 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2009-11-25 05:53:40 PST ---
No, sorry i made mistake. Even after change it is not garbage collected.
Which is normal, because this Fiber is running some method from this object
(namly method named void iter() ), so this object (AGenerator) is still
referenced by Fiber, and it's destructor can't be called. So probably only way
to call destructor will be to separate this into two classes, which is
referenced by delegate from class A, and second which is used only for calling
from outside of fiber.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list