Microsoft KB Archive/221685

= FIX: NODEFAULT in Activate of Page Can Cause Fatal Error =

Article ID: 221685

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221685



SYMPTOMS
Issuing a NODEFAULT command in the Activate event of a page in conjunction with the pageframe's PageCount property being set to 0, can cause the following error:

Fatal Error: Exception code C000005



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



Steps to Reproduce Behavior
  Create a PRG and type in the code below: PUBLIC oform1 oform1 = CREATEOBJECT('form1') oform1.SHOW

DEFINE CLASS form1 AS FORM ADD OBJECT pf1 AS PAGEFRAME WITH ; PAGECOUNT = 0 PROCEDURE pf1.INIT THIS.ADDOBJECT('pg1', 'pg') ENDPROC ENDDEFINE

DEFINE CLASS pg AS PAGE PROCEDURE ACTIVATE NODE ENDPROC ENDDEFINE  Save and run the PRG. Immediately after the PRG runs, the Fatal Error occurs and Visual FoxPro terminates.

Keywords: kbbug kbfix kboop kbcontainer kbctrl kbvs600sp3fix KB221685

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.