PRB: Programs with Matching Name Cause Wrong Program to Run

ID: Q113531

The information in this article applies to:

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:

STATUS

This behavior is by design.

MORE INFORMATION

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:

Last Reviewed: May 29, 1996