<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 30/11/2022 9:09 am, Bob Kline wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGjKmVp85sOeWbS4HPwdnMBxZZZ13fODZQsOL6Z9wO0wat37VQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr"><br>
<div class="gmail_default"
style="font-family:arial,helvetica,sans-serif">So at least
part of that puzzle is cleared up, though it's still
somewhat unsettling that only seven calls to
ScriptItem.Close() are made, regardless of how many
ScriptItem objects have been instantiated during a session.</div>
</div>
</div>
</blockquote>
<p><br>
</p>
<p>The close method is
<a class="moz-txt-link-freetext" href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.debugger.interop.iactivescript.close?view=visualstudiosdk-2019">https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.debugger.interop.iactivescript.close?view=visualstudiosdk-2019</a>,
so it's the responsibility of the host to call that. I agree it's
a bit of a red flag, and may point to confusion in the host about
object lifetimes, which could certainly end up causing what you
are seeing. It's worth pointing out that any "obvious" bug in
pywin32 here would probably be able to be reproduced in, and
reported by, the various other hosts, including cscript.exe and
wscript.exe (which themselves are just active script hosts, just
like your problematic host)<br>
</p>
<p>Mark<br>
</p>
</body>
</html>