<div dir="ltr">OK thank you for the fast reply!<br><br>
<div class="gmail_quote">On Fri, Nov 13, 2009 at 7:23 PM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">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.</span></p>

<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: blue 1.5pt solid; PADDING-BOTTOM: 0in; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
<div>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>] <b>On Behalf Of </b>matan keret<br>
<b>Sent:</b> Friday, November 13, 2009 6:09 AM<br><b>To:</b> Discussion of IronPython<br><b>Subject:</b> [IronPython] DLR Hosting, IronPython Engine shutdown issues</span></p></div></div>
<div>
<div></div>
<div class="h5">
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">Hi everyone,</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">In the old IronPython hosting API there used to be a simple pyEngine.Shutdown() command.</p></div>
<div>
<p class="MsoNormal">And then for cleanup we used: pyEngine.Dispose()</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">What is the equivalent in the new hosting API&#39;s? (am using IronPython 2.0.3)</p></div>
<div>
<p class="MsoNormal">I found that there is something like: <span style="FONT-SIZE: 10pt">pyEngine.Runtime.Shutdown();</span></p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Does that do the same as the old Shutdown() method?</p></div>
<div>
<p class="MsoNormal">And what can I use instead of the Dispose() command that doesn&#39;t seem to exist anymore?</p></div>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p class="MsoNormal">Thanks,</p></div>
<div>
<p class="MsoNormal">  Matan</p></div></div></div></div></div></div></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br></blockquote></div><br></div>