>I have a large application that is broken down into different modules and is distributed in several different executable files. Since upgrading from VFP5 to VFP6 SP3, it has suddenly stopped working.
>
>I have traced the problem down to function names being reused in different executable files.
>
>For example:
>
>A.exe calls B.exe and runs a program in B.exe called XYZ. When it finishes executing, B.exe returns back to A.exe.
>
>A few hundred code lines later A.exe calls C.exe and runs a program in C.exe also called XYZ (although the program name is the same the actual code is completely different from the other XYZ program). And yet VFP6 SP3 is reusing the XYZ program found in B.exe! Even though B.exe is completely out of scope.
>
>It almost seems like VFP is not releasing any of the functions from memory when the executable file finishes .
>
>I've had several other developers reproduce the problem, but no one has come up with a solution (other than renaming all of my programs in all of my projects). Any other ideas?
Have you tried a CLEAR PROGRAM before calling C.EXE? How exactly are you calling C.EXE and in turn how is it calling the XYZ program in it?