OUTERLOOP.PRG DO setenvironment FOR outerloop = 1 TO 15 DO InnerLoop WAIT WINDOW "Holding Outer Loop" TIMEOUT 5 ENDFOR INNERLOOP.PRG FOR innerloop = 1 TO 50 DO realprogram WAIT WINDOW "pausing" TIMEOUT .5 REPLACE doneflag WITH .T. ENDFORDuring one of the iterations I received a "Cannot Redefine" error. Unfortunately, my source code was unavailable to the debugger and I wasn't able to get much help from it. I rebuilt the project and recompiled the EXE, but when I re-ran the program (it started on the same record that failed) everything ran fine.