PRB: Possible Causes for RC Error RW1021

ID: Q117824

The information in this article applies to:

SYMPTOMS

While building a project, the following error message appears:

   RC: fatal error RW1021: I/O error reading file.

CAUSE

The RW1021 error message is usually caused by either an actual I/O error when reading a file (it doesn't exist, or there are network or drive problems) or by corruption of the actual file itself, which causes the RC compiler to report a read error.

RW1021 can also be caused by running LINK version 5.6 on Windows NT version 3.5. This version of the linker is compatible with Windows NT version 3.1.

Using VBX controls from Far Point with Visual C++, version 1.5, can also cause this error during resource binding.

RESOLUTION

If you are using Far Point VBX controls, the solution is to use LINK, version 5.5, from Visual C++, version 1.0, with the /CO:N option; however, keep using the CVPACK, version 4.26, from Visual C++, version 1.5. NOTE: LINK 5.5 cannot be used within the Visual Workbench, version 1.5 if it is running on NT 3.1

If you are not using Far Point VBX controls, check for one of the following, all of which have been known to cause this error:

MORE INFORMATION

If none of the suggestions in this article has helped, delete the .PDB and .PCH files and split any large source-code files. After doing so, do one of the following:

To get the Windows NT version 3.5 compatible linker version 5.60.220, the following file is available for download from the Microsoft Software Library:

 ~ Lnk562.exe (size: 195023 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services
Keywords          : kbtool kb16bitonly LinkIss TlsMisc 
Version           : 1.0 1.5
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: July 24, 1997