in reply to Re: calling subroutine inside loop - ERROR - subroutine executes only oncein thread calling subroutine inside loop - ERROR - subroutine executes only once