int nPos;
boolTerminate = false;
while ( !boolTerminate && !this.isInterrupted() ) {
try {
sleep ( 200 );
if ( boolSuspended == true ) {
synchronized ( this ) {
while ( boolSuspended )
wait ();
}
}
nPos = (int) processor.getMediaTime().getSeconds();
dlgProgress.setCurPos ( nPos );
}catch ( Exception exception ) {
boolTerminate = true;
break;
}
}