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

ID: Q121280

2.5x 2.60 2.60a WINDOWS kbprint kbbuglist

The information in this article applies to:

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

Keywords          : FxtoolGeneral kbbuglist
Version           : 2.5x 2.60 2.60a
Platform          : WINDOWS

Last Reviewed: November 23, 1996