BUG: Binary Compatibility Leaves Source File in Open State (168414)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q168414 SYMPTOMS
When compiling an ActiveX Server (EXE or DLL), you may get the following
error at the end of compiling:
"An unexpected error occurred during compiling or linking"
If you choose to view the error details, the following message will be
displayed:
"LINK : fatal error LNK1104: cannot open file <filename>"
CAUSE
When the Binary Compatibility property is set for an ActiveX Server
component (.EXE or .DLL), Microsoft Visual Basic 5.0 leaves the compatible
source file in an open state until the Visual Basic 5.0 environment is
closed.
NOTE: The behavior can also surface randomly with other types of Visual
Basic projects when Binary Compatibility is used.
RESOLUTION
There are a few workarounds to this behavior: - When using the Binary Compatibility property, do not set the compatible
source file to the same filename and location as the compiled
component's destination file.
-or-
- Use the Project Compatibility option or the No Compatibility option
whenever possible.
-or-
- Close and re-open the Microsoft Visual Basic environment when it is
necessary to delete and/or overwrite the file which is locked in the
open state.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
REFERENCES
For more information on this problem, please refer to the ReadMe.TXT file
enclosed on the Microsoft Visual Basic 5.0 CD-ROM.
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbbug kberrmsg KB168414 |
---|
|