<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Gabriel,<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 01.06.2020 16:51, Jacek Caban wrote:<br>
</div>
<blockquote type="cite"
cite="mid:0f81ced9-9e13-926f-e5fc-e5ab81509c30@codeweavers.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 01.06.2020 14:21, Gabriel
Ivăncescu wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d6605760-3b66-2bac-45ef-60df38146542@gmail.com">
<blockquote type="cite" style="color: #000000;"><br>
Or maybe script module should just store ScriptHost reference.
<br>
<br>
</blockquote>
<br>
It wouldn't change much and we need a ref to the control anyway
(to start the script for example).</blockquote>
<p><br>
</p>
<p>I would need a deeper look to be sure, but it seems to me that
it would solve all your problems by not having to store control
reference in modules. Starting script doesn't really need
control. It currently needs it only to access script host and
check control state. Control state could be reworked to not
require it (test_State() on emulated script engine would be
interesting for such rework).</p>
</blockquote>
<p><br>
</p>
<p>I tested it myself and, as suspected, we don't need control
object to start the script engine. I send patches for that. I hope
it helps.</p>
<p><br>
</p>
<p>Jacek</p>
</body>
</html>