PRB: F5 Key Does Not Build and Run Application in One Step (102163)



The information in this article applies to:

  • The Visual Workbench Integrated Debugger, when used with:
    • Microsoft Visual C++ 1.0
    • Microsoft Visual C++ 1.51
    • Microsoft Visual C++ 1.52
    • Microsoft Visual C++, 32-bit Professional Edition 2.0
    • Microsoft Visual C++, 32-bit Professional Edition 2.1

This article was previously published under Q102163

SYMPTOMS

An attempt to build and run the project loaded in the Visual Workbench by pressing the F5 key fails when one of the project targets is out- of-date.

CAUSE

This behavior is by design. If an application takes a long time to build, you may not expect the application to run after a background compilation initiated with the F5 key.

RESOLUTION

Press the F5 key once to build the project. Then press the F5 key again to run the application.

MORE INFORMATION

In the Visual Workbench, if a project file changes and the user presses the F5 key to run the program, the following message box appears:
One or more targets are out of date, or do not exist. Would you like to build them?
If you choose Yes, Visual Workbench compiles and links the application. If you press the F5 key a second time, after the build process completes, the program runs.

Modification Type:MajorLast Reviewed:12/1/2003
Keywords:kbide kbprb KB102163