FIX: GETFONT() & FONTMETRIC() Cause GP Fault and/or ICE

Last reviewed: September 22, 1997
Article ID: Q123719
2.60a WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS

An internal consistency error (ICE) followed by a general protection (GP) fault occurs in TRANSPRT.PRG.

CAUSE

The default font was changed in the program.

RESOLUTION

Remove the "ACTIVATE WINDOW transtemp NOSHOW" line from the top of the Askfont function in TRANSPRT.PRG.

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.

MORE INFORMATION

Steps to Reproduce Problem

WARNING: The following will cause an Internal Consistency Error followed by a GP fault.

Execute the following program. Be sure to select a different font in the GETFONT() dialog and choose OK.

   MODIFY WINDOW SCREEN FONT "Arial",10     && Change the screen font
   m.fontstrg=GETFONT()                     && Must change the font
   x=fontmetric(1,"Arial",12,"")            && Call Fontmetric
   y=fontmetric(6,"Arial",12,"")            && Sometimes it takes twice

There will be an ICE followed by a GP fault, generally on the first FONTMETRIC() call, but sometimes on the second.


Additional reference words: FoxWin VFoxWin 2.60a fixlist3.00 buglist2.60a
GPF
KBCategory: kbtool kbenv kbfixlist kbbuglist
KBSubcategory: FxtoolTransprt
Keywords : FxtoolTransprt kbbuglist kbenv kbfixlist kbtool
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.