[IronPython] clr.AddReference effect how GC work ?!?!?!?

Curt Hagenlocher curt at hagenlocher.org
Wed Apr 23 17:58:18 CEST 2008

On Wed, Apr 23, 2008 at 8:52 AM, Dino Viehland
<dinov at exchange.microsoft.com> wrote:
> Another solution is to ensure that you pump messages.  The easiest way
> to do that in your sample code below is Thread.CurrentThread.Join(100)
> instead of doing a Thread.Sleep(100).

You could probably also do a GC.WaitForPendingFinalizers, which should
allow any pending finalizers to be run.

__del__ methods aren't nearly as useful in IronPython as they are in
CPython due to the nature of non-deterministic finalization.

Curt Hagenlocher
curt at hagenlocher.org

More information about the Ironpython-users mailing list