Microsoft KB Archive/123719

{| = FIX: GETFONT & FONTMETRIC Cause GP Fault and/or ICE =
 * width="100%"|

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.

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 kbfixlist kbbuglist KBSubcategory: FxtoolTransprt

Keywords         : kbenv FxtoolTransprt kbbuglist kbfixlist Version          : 2.60a Platform         : WINDOWS Solution Type    : kbfix
 * }