Link to home
Start Free TrialLog in
Avatar of rfedyk
rfedyk

asked on

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?
Avatar of markshiffer
markshiffer
Flag of United States of America image

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.
Avatar of DrDelphi
DrDelphi

From the Win32 help file:

998L      ERROR_NOACCESS
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.
ASKER CERTIFIED SOLUTION
Avatar of tongalite
tongalite

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
https://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.  https://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.
https://www.experts-exchange.com/questions/Q.20248791.html
https://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 https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange
Avatar of rfedyk

ASKER

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