What is I/O Error 998?

rfedyk used Ask the Experts™
I have a program that executes a thread. The thread opens one file to read and one file to write. My client tells me that he experiences occasional I/O Error 998.

I can't find a reference to this error in the help files.

Does anyone know what causes it?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Could be the No Access error in windows. If your opening a file for write and it is already in use, its possible this error could appear. Ensure that you are properly closing the file after updating it.

From the Win32 help file:

Invalid access to memory location.

rfedyk, generally you can use the function "SysUtils.SysErrorMessage" (I hope I remember the correct name) to convert an error number to an error string.
Then you should do proper error/exception handling when opening files. If the opening doesn't work, give out the exact location and the error both in number and string. Then you have a better chance to find the reason for the failure.

Regards, Madshi.
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Hi there are quite a few references to this on Google...
Try a search yourself :-)
Good Luck

Delphi 2.00 and 2.01 Users Encounter Error 998 (Q159090)

The information in this article applies to:

Microsoft Windows NT Workstation version 4.0
Microsoft Windows NT Server version 4.0

With Delphi 2.00 and 2.01, users encounter error 998 every time they rebuild the Delphi component library. The same error is encountered frequently when the user runs an application, terminates the application, recompiles the application and then runs it once more. This issue also impacts Borland C++ 5.00 and 5.01.

The write-back disk cache is not cleared after the first initialization has completed.

This problem has been fixed in Windows NT 4.0 Service Pack 2 and later.

Microsoft has confirmed this to be a problem in Windows NT version 4.00. This problem has been corrected in the latest U.S. Service Pack for Windows NT version 4.00. For information on obtaining the Service Pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

Question(s) below appears to have been abandoned. Your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Please click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.

To view your open questions, please click the following link(s) and keep them all current with updates.

------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
Thank you everyone.
Moderator @ Experts Exchange


Sorry it took so long to respond. I actually did a solution from Google

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial