>If I release from any part of the program, it terminates the app. and it is not come to the desktop but gives the aforementioned error message. And, from the task manager I release the vfp9 application.
I understand that, but you should have an error handler which tells you exactly which lines gives the error. The error message typically comes from a line which handles an array.