>procedure AbortProc >*- display message >... >*- close all tables >close all >*- release popups >release popups >*- release all user windows >clear windows >*- release memvars except globals and a few we need >release all except p_*, cTitle, mainbutton >set procedure to >*- return to main menu >return to master && AbortProc>This seems to work most of the time, but in some situations what happens is that after returning to the main menu, when I select a menu item the program crashs. ("VFP has encountered a program and needs to shut down...") I guess I'm not cleaning up correctly, but I don't see what else to do.