FIX: GP Fault When Use @...say to Print Over the Network

ID: Q123654

2.60a WINDOWS

 kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

FoxPro for Windows will cause a general protection (GP) fault when flushing the print buffer to a networked printer when running under Windows NT version 3.5.

RESOLUTION

Use the following code to solve the problem:

   SET DEVICE TO PRINTER
   SET PRINTER TO \\<server>\<printer>
   ??? " " + CHR(27)+"&k2S" && sets hp's to condensed mode
   @ 2,2 say "test"
   SET PRINTER TO           && NO general protection (GP) fault

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0 for Windows.

Steps to Reproduce Problem

Run the following code in the Command window while running FoxPro for Windows under Windows NT version 3.5:

   SET DEVICE TO PRINTER
   SET PRINTER TO
   ??? " " + CHR(27)+"&k2S"    && sets hp's to condensed mode
   @ 2,2 say "test"
   SET PRINTER TO              && general protection (GP) fault occurs

Additional reference words: Vfoxwin Fixlist3.00 FoxWin buglist2.60a GPF 2.60a KBCategory: kbfixlist kbbuglist KBSubcategory: FxnetworkWinnt
Keywords          : kbnetwork FxnetworkWinnt kbbuglist kbfixlist
Version           : 2.60a
Platform          : WINDOWS
Solution Type     : kbfix

Last Reviewed: May 14, 1998