FIX: Application Error When Calling the Documents.Open Automation MethodID: Q216853
|
A VBScript macro causes an application error in Msdev.exe when calling the Documents.Open method on a file that does not exist. This problem may occur, for example, if the file is managed by a source management system such as SourceSafe.
The file specified in the first Documents.Open parameter does not exist. The file may have been deleted or renamed on the local drive.
Microsoft has confirmed this to be a bug in the Microsoft products 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:
Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
The Documents.Open method takes three parameters:
Sub DelAFile()
Documents.Open "MyFile.cpp",,False
End Sub
In this example, the macro is named "DelAFile".For additional information about macros crashing Developer Studio, please see the following article in the Microsoft Knowledge Base:
Q193478 Run-time Macro Errors Cause Developer Studio to Crash
Additional query words:
Keywords : kbservicepack kbAutomation kbVC500bug kbVC600bug kbVCObj kbVS600sp2 kbVS600SP1 kbVS600sp3fix
Version : winnt:5.0,6.0
Platform : winnt
Issue type : kbbug
Last Reviewed: May 19, 1999