Skip to main content
Alex White
Legend
August 24, 2014
Answered

Progressbar freezes. Bug of what?

  • August 24, 2014
  • 1 reply
  • 1027 views

Hi there,

Using this code to create progress bar.

  var PBWin = new Window ("palette", "Progress", [0,0,300,70]);

  var ProgressText = PBWin.add("statictext", [12,10, 190, 30], "Progress");

  var ProgressBar = PBWin.add("progressbar", [10,40,290,60], 0, 50);

  this.windowRef = PBWin;

  PBWin.show();

  PBWin.center();

 

  for(i=0; i<50; i++){

     

      ProgressBar.value = i;

      ProgressText.text ="Processing things "+(ProgressBar.value+1)+" from "+ 50;

      PBWin.update();

      $.sleep (200);     

      }

 

  alert("Done");

But when I switch between the windows (fox example from AE to Chrome), progressbar freezes and I can define is it crashed or continuing to work in the background.

I`d be glad if someone could test and tell does it freeze for anyone else.

This topic has been closed for replies.
Correct answer Dan Ebberts

It works fine for me (no freeze when I switch apps). This is in AE CC 2014.

Dan

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
August 24, 2014

It works fine for me (no freeze when I switch apps). This is in AE CC 2014.

Dan

Alex White
Legend
August 24, 2014

Hi Dan,

Thanks for your response. Are you running AE on Mac or PC?

Dan Ebberts
Community Expert
Community Expert
August 24, 2014

That was on Win 7.