Running a Program

To run a program that is loaded into Quincy's editor:

  1. Click the Run tool button.
  2. Or Press F9.
  3. Or choose the Run command on the Debug menu.
  4. If the program is out of date--if the source code file has been changed so that it is newer than the executable--a dialog asks first if you want to compile the program. If you respond by clicking Yes, Quincy launches the compiler and runs the program only when a successful compile has completed.

Console Window

Before running the program, Quincy creates a console window (unless the program is built from a Quincy project that specifies a GUI target), which serves as standard console input and output for the program. You read text from and type text into that window as if you were running the program from a DOS command line. The following screen shot shows a console window with a program that has run to completion.

Quincy always displays the message that says "Press Enter to return to Quincy..." in the console window to give you time to read the output before Quincy closes the console. Press the Enter key to close the window and return to the Quincy IDE.

Stopping a Program

To stop a program in progress before it has run to completion.

  1. Click the Stop tool button.
  2. Or select the Stop command on the Debug menu.
  3. Or press Ctrl+C when the program is waiting for the keyboard at the console window . This option terminates Quincy along with the running program and is unpredictable.
  4. Or click the X icon at the right end of the console window's title bar. Windows displays a dialog box asking if you really want to do that. This option usually terminates Quincy along with the running program. It appears to lock up Windows for a few seconds while it figures out that it is supposed to close the console window.

It is best not to use the procedures listed as options 3 and 4 but to use the Stop command or Stop tool button instead.


<--previous page next page-->