[IronPython] DLR Hosting, IronPython Engine shutdown issues
dinov at microsoft.com
Fri Nov 13 09:23:10 PST 2009
pyEngine.Runtime.Shutdown() is the equivalent. As far as Python is concerned the only interesting thing this does is run sys.exitfunc if it's been set - there's some other stuff that happens but it's logging and some cleanup which will happen on its own. So there's no need to really call a Dispose type method.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of matan keret
Sent: Friday, November 13, 2009 6:09 AM
To: Discussion of IronPython
Subject: [IronPython] DLR Hosting, IronPython Engine shutdown issues
In the old IronPython hosting API there used to be a simple pyEngine.Shutdown() command.
And then for cleanup we used: pyEngine.Dispose()
What is the equivalent in the new hosting API's? (am using IronPython 2.0.3)
I found that there is something like: pyEngine.Runtime.Shutdown();
Does that do the same as the old Shutdown() method?
And what can I use instead of the Dispose() command that doesn't seem to exist anymore?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users