Hiya --
A wild hunch --- change EXTEND to EXTENDED and see what happens. Secondly, you could always wrap the RELEASE ALL EXTENDED into an IF function to check to see if you're in APP or EXE as follows:
IF VERSION(2)#0 && Not in runtime
RELEASE ALL EXTENDED
ENDIF
You really don't need a release if a standalone executable.
>I have a VFP application. When it runs as .app in VFP, it works fine. However, after I build it into .exe and run in Windows or NT, it will report "File does not exist" error when I exit. The error happens at the end of the program when it execute cleaning up as follows:
>
>RELEASE ALL EXTEND
>
>What is the problem? Thanks in advance.
>
>Wei Lin
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05