BUG: Invalid Page Fault Using Scripting Run-time on Windows 95

ID: Q249659


The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0
    on the following platforms: Win95


SYMPTOMS

You may receive an Invalid Page Fault when closing down your application if you have accessed certain properties of the Microsoft Scripting Run-time Objects in your code. The details of the error will 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 Visual Basic version 5.0 or version 6.0. The memory address and offset at the end of the message may vary.


CAUSE

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


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products 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:


  5. 
    Private Sub Form_Click()
     Dim fso As FileSystemObject
     Dim d As Drive
    
     Set fso = New FileSystemObject
     Set d = fso.GetDrive("C:")
     MsgBox f.AvailableSpace
     Set fso = Nothing
     Set d = Nothing
    End Sub 
  6. From the File menu, click Make Project1.exe to compile the executable.


  7. 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 : kbVBp kbVBp500bug kbVBp600bug kbWinOS95 kbGrpVB kbDSupport
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: February 1, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.