Eylon, Koen,
OK, one thing I didn't yet think of is a broken external file like the foxuser.dbf. Actually, something too often causing problems, that we shouldn't overlook that. But because I also don't have much use of it in my projects I add a config file suppressing the generation of that DBF and I often forget about its existence.
Koen, you know what I mean, you don't need to read the rest, just if your getting back to this before Eylon you could simply see whether a foxuser.dbf is created.
A corrupt fioxuser.dbf could also make the EXE fail in a very early stage with a fatal error. An EXE compiled from VFP source code does create such a DBF, and that happens even before the first line of VFP code executes, so just like loading the C runtime and loading the VFP runtime and starting these things up to be able to execute the compiled VFP code this happens before any VFP code of the EXE itself that could cause that fatal error is. The reason is of course not just the generation of such a file but reading it. There is a way to configure this to
not be created, but we don't yet need to get there, it would also suffice if it's regenerated because you delete a corrupted file set and the next one likely will not be broken.
In the simplest case you find two files foxuser.dbf and foxuser.fpt in the application directory or redirected by UAC into another folder, that will be:
C:\Users\yourwindowsaccountname\AppData\Local\VirtualStore\Program Files (x86)\Stock Investor\ProfessionalIt could also be in the more "normal" place, the application directory itself if the installer grants write permission into the installation folder
C:\Program Files (x86)\Stock Investor\Professional. It could also be in both when the vendor added a foxuser.dbf into the program files, but then you easily get into trouble when there still is only read permission and write operations create the file in the \VirtualStore\ folder. So please look in both places and delete the files in both places. The next step is you could create a text file and write RESOURCE=OFF into it, save that as config.fpw in the EXE folder, that'd prevent that files to be created. But before you do that, the software might make use of it, so there is no reason to avoid it, once it is generated correctly and works there always is the risk of it becoming broken again, but it will not happen so regularly and the fix will be to delete it. What you might win keeping it is the software remembering your window position or positions, that's one of the features stored in that table.
Olaf Doschke Software Engineering