Login  Register

Re: Morphic or forking bug?

Posted by HilaireFernandes on May 31, 2017; 6:43pm
URL: https://forum.world.st/Morphic-or-forking-bug-tp4948727p4948763.html

Alternatively use the step protocol of the Morph class. I think it is
documented in the Pharo by example book.

Hilaire


Le 31/05/2017 à 17:00, Denis Kudriashov a écrit :

> Hi Horrido.
>
> Morphic is not thread safe library. Users should not update morphs
> state directly from background processes. Use #defer: message to
> update morphs in such cases.
> Try following loop:
>
>   [ [ true ] whileTrue: [ UIManager default defer: [ a contents: 0
> asString]. delay wait ] fork
>
>

--
Dr. Geo
http://drgeo.eu