What is I/O Error 998?

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?
LVL 1
rfedykAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

markshifferCommented:
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.
DrDelphiCommented:
From the Win32 help file:

998L      ERROR_NOACCESS
Invalid access to memory location.


MadshiCommented:
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.
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

tongaliteCommented:


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

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



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



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



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



STATUS
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):

S E R V P A C K

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MoondancerCommented:
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.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
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.
http://www.experts-exchange.com/questions/Q.20248791.html
http://www.experts-exchange.com/questions/Q.20271856.html

PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  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.
 
Moondancer
Moderator @ Experts Exchange
rfedykAuthor Commented:
Sorry it took so long to respond. I actually did a solution from Google
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.