BUG: Print to file w/ SET DEVICE TO FILE w/@ SAY Causes ICE

Last reviewed: November 21, 1996
Article ID: Q121280
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a

SYMPTOMS

Foxpro hangs (stops responding) and displays a "Resource manager internal consistency error" error message followed by a general protection (GP) fault when you print a hand coded report using @ SAY to a text file by using the SET DEVICE TO FILE.

This error occurs only if using SET DEVICE TO PRINTER to print out the @ SAY hand coded report to the printer prior to using SET DEVICE TO FILE in conjunction with SET PRINTER ON command to print to a file.

RESOLUTION

Comment the first SET PRINTER ON command to allow normal operation.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a new program file.

  2. Enter the following code into the new program file:

    SET DEVICE TO PRINTER SET PRINTER ON @1,1 SAY "THIS IS A TEST" @2,1 SAY "THIS IS A TEST" SET PRINTER OFF SET PRINTER TO SET DEVICE TO FILE "TEST.TXT" @1,1 SAY "THIS IS A TEST" @2,1 SAY "THIS IS A TEST" SET PRINTER OFF SET PRINTER TO

  3. Comment the SET PRINTER ON. The code will run successfully.


Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a GPF
buglist2.50 buglist2.50a buglist2.50b buglist2.60 buglist2.60a
KBCategory: kbprint kbbuglist
KBSubcategory: FxtoolGeneral


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: November 21, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.