<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 07/09/2022 à 17:21, Juan Vuletich a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:6318B702.5070002@cuis.st">Yes.
Most likely. I think your image build code could perhaps do at the
end something like `UISupervisor whenUIinSafeState: [ save the
image and quit ]`. If that is queued after the initialize, the
initialize should be done prior to saving, and it should work OK.<br>
<br>
Hope this helps.</blockquote>
<p><font size="4">Hi Juan, <br>
</font></p>
<p><font size="4">No it does not help. Still same error.</font></p>
<p><font size="4">VectorCanvas class is not initialized during the
build of the DrGeo image. Only when it is runned again.<br>
</font></p>
<p><font size="4">From my understanding, when looking at
VectorCanvas class>>initialize, the UI is never in a safe
state so the UISupervisor whenUIinSafeState: [] bloc argument
is not executed.</font></p>
<p><font size="4">It likely comes from the way I build the image
which is:</font></p>
<p><font size="4">1. Start VM with a stock image and an installation
script<br>
</font></p>
<blockquote>
<p><font size="4">squeak Cuis.image -s installation-script.st</font></p>
</blockquote>
<p><font size="4">2. Installation script is simple as:</font></p>
<blockquote>
<p><font size="4">Feature require: '../src/DrGeo.pck.st'.<br>
(Smalltalk at: #DrGeoSystem) perform: #install.<br>
UISupervisor whenUIinSafeState: [Smalltalk saveAndQuit].</font></p>
</blockquote>
<p><font size="4"><br>
</font></p>
<p><font size="4">What is strange is: in my script the </font><font
size="4"><font size="4">UISupervisor whenUIinSafeState:
[Smalltalk saveAndQuit] is executed but not the one in
VectorCanvas class>>initialize.</font></font></p>
<p><font size="4"><font size="4">Juan suggested I should build the
image in the Cuis-Smalltalk-Dev directory. I wanted to avoid
that to properly separate, but I will try that now.<br>
</font></font></p>
<p><font size="4">Hilaire<br>
</font></p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>