<div dir="ltr"><div><div>When run from the command line, the following program does not wait for the frame to be closed, but closes it immediately and ends the program:<br></div><div><br></div>#lang racket<br></div><div>(require plot)<br>
<br></div><div>(send (plot-frame (lines '((0 0)(1 1)))) <br></div><div> show #t)<br><br></div><div>;(sleep 1)<br><br></div><div>If it's too fast for the frame to show up, uncomment the `sleep' line.<br>
<br>
</div><div>When adding another frame like:<br>(send (new frame% [label "main"] [width 100] [height 40]) show #t)<br><br></div><div>the program does not halt before the frame is closed though.<br><br></div><div>
I suspect this is because the plot-frame is creating a new event-space, but I don't know how to solve the problem. (I'm not even sure why a new event-space is needed here.)<br>
<br></div><div>Laurent<br></div></div>