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

Last reviewed: September 22, 1997
Article ID: Q123654
2.60a WINDOWS kbnetwork kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.6a

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: kbnetwork kbfixlist kbbuglist
KBSubcategory: FxnetworkWinnt
Keywords : FxnetworkWinnt kbbuglist kbfixlist kbnetwork
Version : 2.60a
Platform : WINDOWS
Solution Type : kbfix


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: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.