>I have an application menu that has been used with out any problem for several years. Several days ago I was modifying a form. I finished what I was doing and left to do some errands. I did not close out of VFP. When I came back to VFP my menu would not work. I did not modify the menu or even had the menu editor open. The symptoms are I run the prg file, a login window comes up, after logging in, the vfp screen shows up with my menu at the top. All is well at this point. When I click on one of the menu items that is supposed to open a form I get a VFP can't find procedure error. The procedure is the code that opens the form.
>
>I have manually opened the mpr file an verified that the procedure is there. I do my testing by running the prg file from the command window.
>I have found out that if I compile an exe and then run the exe everything works. When I close out of the exe and run the prg file everything works correctly. If I close out of vfp and then come back in I have to do the above process all over again.
>
>I have took all of my source files and put them on another computer with same features as the problem machine and all works correctly. I can run the prg file with out compileing an exe first.
>
>I feel the problem is in my configuration of the developement enviroment since all works ok on another machine. If I can't find a solution here my next step is going to be to uninstall and reinstall vfp. Yes I realize I should be using a newer version of VFP but I haven't got around to upgrading the customers computers to a newer version yet.
>
>Randy
Try deleting all fxp files, re-generate the menu and then re-build the project with Compile All option checked. May be it'll cure the problem.
If it's not broken, fix it until it is.
My Blog