Microsoft KB Archive/249659

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

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):

http://msdn2.microsoft.com/en-us/library/ms950396.aspx



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



Steps to Reproduce Behavior
 Make sure that you have version 5.x of the Scrrun.dll file installed. Start a new Standard EXE Project in Visual Basic. Form1 is created by default. From the Project menu, choose References, and select "Microsoft Scripting Run-time" in the References dialog box. Click OK.  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  From the File menu, click Make Project1.exe to compile the executable.</li> Run the compiled executable. Click on the form and the message box displays. Click OK in the message box and then close the form.</li></ol>

Result: The Invalid Page Fault occurs.

Additional query words: crash ipf gpf

Keywords: kbbug kbpending KB249659

-

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

© Microsoft Corporation. All rights reserved.