>I have the same application compiled in VFP6 and running perfectly OK. Only that after compiling with VFP7 it is working fine, but while exiting application it gives this error.
For a small test, you may want to add some hooks in the exit procedures of your application, such as a few messagebox, in order to track where it is. The first think to do, in that EXE in VFP 7 is to locate in which line it gives this error.