I have a client with a very robust and large VFP application. The app
has been modified from the original Foxpro for DOS version years ago.
There are still some DOS code (@say, etc) in the program. Recently,
the application is giving a GPF error (ie. not trappable by
try....catch...) when certain simple actions are performed. Actions
such as displaying a browse, printing to a screen, etc. The GPF
message is in GERMAN! They installed the application in English. This
seems strange. I have "band-aid" fixed the few times this has come up
by some unorthodox methods.
One time this message was coming up on a simple @ SAY line that didn't
fail except in one specific case. The @ SAY was in a global, very
often used function routine to display text on a dialog box. This code
is run hundreds of times a day. In one specific scenario, VFP would
crash with the error message in German. I tried to debug, but the code
ran fine with the debugger. So...I thought I will write the contents
of memory to a file (DISPLAY MEMORY TO...) at the line where the GPF
occurs. To my surprise, the GPF did not occur when I wrote memory to a
file. So...that writing to a text file fix, stayed in the production
version of the program since I couldn't find another solution that
worked.
But now, the GPF in German is coming up more often. It seems to me
that VFP itself is becoming unstable. Any ideas as to how to fix this
problem? The app is running under VFP 8.