[Cuis-dev] About complexity in the face of the user

Hilaire Fernandes hfern at free.fr
Sun Mar 17 04:48:08 PDT 2024


Something wrong in the code execution below, in the exception handler, 
"sketchProcess suspendedContext" executes to nil.

So the question is how to know about the suspendedContext of the halted 
process?

Thanks

Hilaire

Le 17/03/2024 à 11:33, Hilaire Fernandes a écrit :
>
>
> What I am doing now to try to capture the window is:
>
> executeSketch
> 	self  stopSketch.
> 	codeView  scroller  acceptContents.
> 	self  switchToPauseButton.
> 	DrGeoSketch  when:  #newSmalltalkSketch  send:  #compiledSketch:  to:  self.
> 	sketchProcess  :=  [|  t  |
> 		t  :=  DateAndTime  now.
> 		[Compiler  evaluate:  model]
> 			on:  Exception  
> 			do:  [debugger  :=  Debugger  
> 					openMinimalDebuggingProcess:  sketchProcess  
> 					context:  sketchProcess  suspendedContext  .
> 				self  plugDebugger  ].
> 		" When we get there, sketch has been entirely executed, switch back to 
> play button "
> 		self  switchToPlayButton.
> 		Transcript  show:  DateAndTime  now  -  t  ;cr]newProcess.
> 	sketchProcess  
> 		priority:  Processor  userSchedulingPriority  ;
> 		name:  '[DrGeo] Smalltalk Sketch execution';
> 		resume.
>
>
> Thanks to take the time to read that far!
>
-- 
GNU Dr. Geo
http://gnu.org/s/dr-geo/
http://gnu-drgeo.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240317/f34c40c6/attachment.htm>


More information about the Cuis-dev mailing list