<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font size="4">Something wrong in the code execution below, in
        the exception handler, "sketchProcess suspendedContext" executes
        to nil.</font></p>
    <p><font size="4">So the question is how to know about the
        suspendedContext of the halted process?</font></p>
    <p><font size="4">Thanks</font></p>
    <p><font size="4">Hilaire<br>
      </font></p>
    <div class="moz-cite-prefix">Le 17/03/2024 à 11:33, Hilaire
      Fernandes a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:097afbb8-7342-4e56-8eed-1715a2afc7be@free.fr">
      <p><font size="4"><br>
        </font></p>
      <p><font size="4">What I am doing now to try to capture the window
          is:</font></p>
      <div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
        <pre style="margin: 0; line-height: 125%"><span
        style="color: #0066BB; font-weight: bold">executeSketch</span>
        <span style="color: #007020">self</span> <span
        style="color: #0066BB; font-weight: bold">stopSketch</span>.
        <span style="color: #996633">codeView</span> <span
        style="color: #0066BB; font-weight: bold">scroller</span> <span
        style="color: #0066BB; font-weight: bold">acceptContents</span>.
        <span style="color: #007020">self</span> <span
        style="color: #0066BB; font-weight: bold">switchToPauseButton</span>.
        <span style="color: #BB0066; font-weight: bold">DrGeoSketch</span> <span
        style="color: #0066BB; font-weight: bold">when:</span> <span
        style="color: #AA6600">#newSmalltalkSketch</span> <span
        style="color: #0066BB; font-weight: bold">send:</span> <span
        style="color: #AA6600">#compiledSketch:</span> <span
        style="color: #0066BB; font-weight: bold">to:</span> <span
        style="color: #007020">self</span>.
        <span style="color: #996633">sketchProcess</span> <span
        style="color: #333333">:=</span> [ <span style="color: #333333">|</span> <span
        style="color: #996633">t</span> <span
        style="color: #0066BB; font-weight: bold">|</span>
                <span style="color: #996633">t</span> <span style="color: #333333">:=</span> <span
        style="color: #BB0066; font-weight: bold">DateAndTime</span> <span
        style="color: #0066BB; font-weight: bold">now</span>.
                [<span style="color: #BB0066; font-weight: bold">Compiler</span> <span
        style="color: #0066BB; font-weight: bold">evaluate:</span> <span
        style="color: #996633">model</span>] 
                        <span style="color: #0066BB; font-weight: bold">on:</span> <span
        style="color: #BB0066; font-weight: bold">Exception</span> 
                        <span style="color: #0066BB; font-weight: bold">do:</span> [<span
        style="color: #996633">debugger</span> <span
        style="color: #333333">:=</span> <span
        style="color: #BB0066; font-weight: bold">Debugger</span> 
                                        <span style="color: #0066BB; font-weight: bold">openMinimalDebuggingProcess:</span> <span
        style="color: #996633">sketchProcess</span> 
                                        <span style="color: #0066BB; font-weight: bold">context:</span> <span
        style="color: #996633">sketchProcess</span> <span
        style="color: #0066BB; font-weight: bold">suspendedContext</span> .
                                <span style="color: #007020">self</span> <span
        style="color: #0066BB; font-weight: bold">plugDebugger</span> ].
                <span style="color: #888888">" When we get there, sketch has been entirely executed, switch back to play button "</span>
                <span style="color: #007020">self</span> <span
        style="color: #0066BB; font-weight: bold">switchToPlayButton</span>.
                <span style="color: #BB0066; font-weight: bold">Transcript</span> <span
        style="color: #0066BB; font-weight: bold">show:</span> <span
        style="color: #BB0066; font-weight: bold">DateAndTime</span> <span
        style="color: #0066BB; font-weight: bold">now</span> <span
        style="color: #0066BB; font-weight: bold">-</span> <span
        style="color: #996633">t</span> ;<span
        style="color: #0066BB; font-weight: bold">cr</span>] <span
        style="color: #0066BB; font-weight: bold">newProcess</span>.
        <span style="color: #996633">sketchProcess</span> 
                <span style="color: #0066BB; font-weight: bold">priority:</span> <span
        style="color: #BB0066; font-weight: bold">Processor</span> <span
        style="color: #0066BB; font-weight: bold">userSchedulingPriority</span> ;
                <span style="color: #0066BB; font-weight: bold">name:</span> <span
        style="background-color: #fff0f0">'[DrGeo] Smalltalk Sketch execution'</span>;
                <span style="color: #0066BB; font-weight: bold">resume</span>.
</pre>
      </div>
      <p><font size="4"><br>
        </font></p>
      <p><font size="4">Thanks to take the time to read that far!</font></p>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://gnu.org/s/dr-geo/">http://gnu.org/s/dr-geo/</a>
<a class="moz-txt-link-freetext" href="http://gnu-drgeo.blogspot.com/">http://gnu-drgeo.blogspot.com/</a></pre>
  </body>
</html>