>Can anybody advise the best way of closing a VFP6 applicaton?
>I've been experimenting but get 'Fatal Error: Exception Code = C0000005' message before it exits.
>In my program (originally a 2.6a app I've converted to VFP6), the user selects Quit from the menu, this calls the Quit procedure in a .PRG which invokes a confirmation dialog box, then puts a datestamp against the user in the user table, then does:
>
>DO shut_dwn
>
>This calls shut_dwn.prg which contains these commands
>
>CLOSE DATA
>CLOSE ALL
>CLEAR ALL
>RELEASE ALL
>RELEASE WINDOW
>ON KEY
>ON ERROR
>ON SHUTDOWN
>SET SYSMENU TO DEFAULT
>SET HELP ON
>SET EXCL ON
>QUIT
>
>Your suggestions are most appreciated.
It's all right, except that you miss CLEAR EVENTS which is the main 'closure' command in VFP.
Edward Pikman
Independent Consultant