[Cuis-dev] Strange behavior with stepping

Juan Vuletich juan at jvuletich.org
Sun Aug 22 10:59:56 PDT 2021


On 8/22/2021 7:12 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> By encapsulating in the message suggested by Phil I get the expected 
> behavior.. Thanks for the tip.
>
> Likely there is a race condition as I reset frequently the 
> stillMouseDown step handler.
>
> Nevertheless method running the steps should be safer.
>
> Hilaire
>
> Le 21/08/2021 à 19:22, Phil B a écrit :
>> If that is the issue, I think there's a larger problem to be solved.  
>> Morphic is inherently not thread safe so you're dealing with an 
>> intractable problem (short of re-architecting Morphic.)    Other than 
>> marking a morph for redraw, anything else touching Morphic from a 
>> background process needs to be wrapped in UISupervisor 
>> whenUIinSafeState: [].
>>
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu

Please save an image where you see the problem and make it available to 
me. This way I'll be able to understand what's going on, debug it, and 
either fix it, or confirm that Phil's suggestion is the best alternative.

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210822/1a9d50f3/attachment.htm>


More information about the Cuis-dev mailing list