Only a couple of our users are reporting "File does not exist." errors when exiting our MM app. Has anyone come across this yet? I think it is coming from the reset method in the globalenvironment but I'm not sure. Unfortunately, the error manager is disabled before the reset is run.
Ask this users whether they have opened more than one form before trying to close the application. This error may come from trying to open a temp file, that another form has deleted or something else.
Ask them to make screenshots (using Ctrl-PrintScr) and pasting after that in Paint when this error comes up.
Another (and according to me better way) is to make you own
ON ERROR handler that makes log of the
ERROR(), MESSAGE(), SYS(2018) and the program nesting (call stack)
From the VFP help:
The program nesting is returned in the following short program example:
STORE 1 TO gnX
DO WHILE LEN(SYS(16,gnX)) != 0
? SYS(16,gnX)
STORE gnX+1 TO gnX
ENDDO
You can also use third-party tools to make the screen-shots automatically.
Identifing error and making an reproducing pattern are the first steps to the problem solution!
Kind Regards
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!