* main.prg on shutdown EnditAll() do yourmenu.mpr do form ... read events on shutdown return * EndItAll function EnditAll * close down any active forms for i = 1 to _screen.FormCount if ( _screen.Forms[1].QueryUnload() ) _screen.Forms[1].Release() endif endfor clear events return>I have a program that I am creating, a single form with multiple pageframes as a top level form and it runs fine, but when I quit the program the executable stays loaded in memory and the only way to unload it is with task manager. This prevents me from compiling any changes because the executable is locked until I end the process manually. I am using VP 6.0 under Windows 2000. I have clear reads in both the exit.click event and the main.prg after the read events.