Microsoft KB Archive/249659

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 13:51, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Article ID: 249659

Article Last Modified on 8/8/2007



APPLIES TO

  • Microsoft Visual Basic 5.0 Learning Edition, when used with:
    • Microsoft Windows 95
  • Microsoft Visual Basic 6.0 Learning Edition, when used with:
    • Microsoft Windows 95
  • Microsoft Visual Basic 5.0 Professional Edition, when used with:
    • Microsoft Windows 95
  • Microsoft Visual Basic 6.0 Professional Edition, when used with:
    • Microsoft Windows 95
  • Microsoft Visual Basic 5.0 Enterprise Edition, when used with:
    • Microsoft Windows 95
  • Microsoft Visual Basic 6.0 Enterprise Edition, when used with:
    • Microsoft Windows 95



This article was previously published under Q249659

SYMPTOMS

You may get an invalid page fault error message when you close your application if you have accessed certain properties of the Microsoft Scripting Run-Time Objects in your code. The details of the error message start as follows:

[AppName] caused an invalid page fault in module SCRRUN.DLL at 0137:6b801185.

[AppName] is the name of the executable. So, if you are running the compiled EXE, [AppName] is the name of your EXE, and if you run the project from the IDE, [AppName] is the Visual Basic executable, either VB5.exe or VB6.exe. The memory address and offset at the end of the message may vary.

CAUSE

The error message occurs if you have version 5.x of the Scrrun.dll file and your operating system is Microsoft Windows 95. The error does not occur on Microsoft Windows 98, Windows Me, Microsoft Windows NT and Windows 2000-based computers, or with version 4.x of the Scrrun.dll file.

RESOLUTION

This bug was corrected in Windows Script 5.5. To download this update, please see the following page on the Microsoft Developer Network (MSDN):

STATUS

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

MORE INFORMATION

Steps to Reproduce Behavior

  1. Make sure that you have version 5.x of the Scrrun.dll file installed.
  2. Start a new Standard EXE Project in Visual Basic. Form1 is created by default.
  3. From the Project menu, choose References, and select "Microsoft Scripting Run-time" in the References dialog box. Click OK.
  4. Add the following code to the Declarations Section of Form1:

    Private Sub Form_Click()
     Dim fso As FileSystemObject
     Dim d As Drive
    
     Set fso = New FileSystemObject
     Set d = fso.GetDrive("C:")
     MsgBox d.AvailableSpace
     Set fso = Nothing
     Set d = Nothing
    End Sub
                        
  5. From the File menu, click Make Project1.exe to compile the executable.
  6. Run the compiled executable. Click on the form and the message box displays. Click OK in the message box and then close the form.

Result: The Invalid Page Fault occurs.


Additional query words: crash ipf gpf

Keywords: kbbug kbpending KB249659