Possible Causes for RC Error RW1021

Q117824


The information in this article applies to:


SUMMARY

While building a project, the following error message appears:

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


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:

The following files are available for download from the Microsoft Download Center:
lnk562.exe
For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services
Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

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

Additional query words:

Keywords : kbfile kbtool kb16bitonly
Issue type : kbprb
Technology : kbVCsearch kbAudDeveloper kbvc150 kbvc100


Last Reviewed: May 9, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.