_Screen.AddObject("oResizer", "Resizer") DEFINE CLASS Resizer AS Custom oScreen = _Screen PROCEDURE oScreen.Resize WAIT window "Resizing" NOWAIT ENDPROC ENDDEFINEAt the end of the program, this runs:
If Vartype(_Screen.oResizer) = 'O' _Screen.RemoveObject("oResizer") EndifIt does run the RemoveObject line. However, if I BUILD the application again, it gives me this error:
File cannot be closed because outstanding references exist.If I exit FoxPro, and restart, then BUILD works fine. Removing all the above, then BUILD works without a problem.