Login  Register

Re: Transcrip Show: in a loop

Posted by Sven Van Caekenberghe-2 on Nov 13, 2015; 9:38am
URL: https://forum.world.st/Transcrip-Show-in-a-loop-tp4860817p4860823.html


> On 13 Nov 2015, at 10:20, abdelghani ALIDRA <[hidden email]> wrote:
>
> Hi all,
>
> In order to monitor my program performance, I am using Transcrip>>show as follows ;
>
> 10 timesRepeat:[
>     aLongComputation.
>     Transcript show: 'some message'.
>     ]
>
> The thing is that the messages are not shown one after another but all together after the loop is finished, unless I put a ... self halt
> Is this behavior normal? is there any way to make the messages come one by one?

That happens because your computation executes in the UI thread (i.e. the thread that is doing the drawing), only after everything is done there is time to draw on the screen.

> Thanks
>
> Abdelghani