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

Last reviewed: June 27, 1995
Article ID: Q129312
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6a

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


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.