Microsoft KB Archive/113531

{| = PRB: Programs with Matching Name Cause Wrong Program to Run =
 * width="100%"|

ID: Q113531

The information in this article applies to:


 * Microsoft FoxPro for Macintosh, version 2.5b

SYMPTOMS
When you are using the Application command on the Run menu to consecutively run two different programs that have the same name, the first program is run twice. In other words, the first program is run again when you attempt to run the second program.

CAUSE
The first program is still in memory. For performance reasons, a program is not reloaded from the disk each time it is called.

RESOLUTION
To force FoxPro to load the second program from the disk, do one of the following:

 Issue the CLEAR PROGRAM command before running the second program. -or- Use the DO ? command instead of choosing the Application command from the Run menu. The question mark (?) causes FoxPro to display a dialog box for you to select the program.

STATUS
This behavior is by design.

Steps to Reproduce Problem
1. From the Run menu, choose Application.

2. Select LASER.APP from the Sample:Laser:DOSONLY subfolder in the main

FoxPro folder. Choose Run.

Note that LASER.APP uses MS-DOS text-style buttons. 3. Choose the Quit button in LASER.APP. 4. From the Run menu, choose Application.

5. Select LASER.APP from the Sample:Laser:CROSPLAT subfolder in the main

FoxPro folder. Choose Run.

Note that LASER.APP still uses MS-DOS text-style buttons. 6. Choose the Quit button in LASER.APP. 7. In the Command window, type "DO ?" (without the quotation marks).

8. Select LASER.APP from the Sample:Laser:CROSPLAT subfolder in the main

FoxPro folder. Choose Do. Note that LASER.APP now uses a graphical interface, indicating that the cross-platform version was loaded this time. Additional reference words: FoxMac 2.50b duplicate identical like similar alike multiple KBCategory: kbprg kbprb KBSubcategory:
 * }