PRB: Programs with Matching Name Cause Wrong Program to Run

Last reviewed: May 29, 1996
Article 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.

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:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.