>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.
There's a FAQ entry that discusses a possible problem with VFP6, applications that start wqith SCREEN=OFF, and the lack of proper installation of DCOM; simply put, VFP6 would shut down with a C5 error if DCOM wasn't installed properly. If this is happening with Win95 systems, or NT systems where NT SP3 or later has not been installed, it'd be worth while to take a look at the FAQ entry outlinign this problem and how to fix it.