BUG: Crash with GETPRINTER() and SYS(1037) or Page Setup

ID: Q235123


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 6.0
    on the following platforms: NT


SYMPTOMS

Visual FoxPro in Visual Studio 6.0 Studio Service Pack 3 running under Window NT 4.0 crashes after issuing the GETPRINTER() function.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

This problem is only known to happen on the Windows NT 4.0 operating system. It has not been reproduced under Windows 98 or Windows 95. Nor does it happen with the original release of Visual FoxPro 6.0.

There are two methods listed below to reproduce this problem. For both methods, make sure you have one or more printers set up in the Printers control panel. The printer (or printers) can be on network, local, or even directed to the File port. The printer driver used does not appear to make a difference.

Steps to Reproduce Behavior

  1. GETPRINTER() with SYS(1037):


    1. In the Command window, enter:
      
      ? SYS(1037) 
      and press the ENTER key. Press either OK or Cancel to close Page Setup.


    2. Next, enter:
      
      ? GETPRINTER() 
      and press the ENTER key. Visual FoxPro crashes with an Application Error.


  2. GETPRINTER() with Page Setup:

    1. From the File menu, choose the Page Setup command. Press OK or Cancel to close Page Setup.


    2. In the Command window, enter:


    3. 
      ? GETPRINTER() 
      and press the ENTER key. Visual FoxPro crashes with an Application Error.


Note that the SYS(1037) function only displays the Page Setup dialog box; therefore, the problem appears to be with displaying Page Setup and then issuing GETPRINTER() any time after that. In an application, these two events might not be closely related.

Additional query words:

Keywords : kbPrinting kbVFp600 kbXBase kbVS600sp3bug kbGrpFox kbDSupport
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: August 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.