PRB: Apparent Hang When Output to Printer & to File w/ @..SAYs

ID: Q129312

The information in this article applies to:

SYMPTOMS

When you send information to a printer and to a file by using @ SAY commands, the computer appears to lock up (hang). Although there is still activity on the hard disk, writing to the file appears to be abnormally slow.

CAUSE

The slowness appears to be caused by the existence of previous information that is still being held in the print buffer.

WORKAROUND

Issue the command SET PRINT TO on the line before the SET DEVICE TO FILE command to flush the print buffer and allow the information to be written to the file in a normal manner.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

1. In the Command window, type:

   MODIFY COMMAND TEST

2. In the TEST.PRG editing window, issue the following commands:

   SET DEVICE TO PRINTER
   @ 1,1 SAY "First Line"
   @ 2,1 SAY "Second Line"
   SET DEVICE TO FILE Junk.txt
   @ 1,1 SAY "Test1"
   @ 2,1 SAY "Test2"

3. Save the program by pressing CTRL+W. Then type the following in the
   Command window:

   DO TEST.PRG

4. Note that the machine appears to be locked up.

Additional reference words: FoxWin 2.60a KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995