Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Oct : I/O error 103

www.cryer.info
Managed Newsgroup Archive

I/O error 103

Subject:I/O error 103
Posted by:"Mikael Lenfors" (mika..@lenfors.se)
Date:Sat, 13 Oct 2007 14:10:02

Hello!

I have a program that has been running for years and now I suddenly get I/O
error 103. I'ts running as a windows service.

The code loooks someting like this

Try
   AssignFile(F, FileName);
   If FileExists(FileName) Then
      Append(F)
   Else
      Rewrite(F);

   Try
      While DataAvailable Do
      Begin
         -- Do some processing ---
         Writeln(F, Dtata);
      End;
   Except
      On E: Exception Do
      Begin
         Logg('Process error: ' + E.Message);
      End;
   End;

   CloseFile(F);

Except
   On E: Exception Do
   Begin
      Logg('Open file error: ' + E.Message);
   End;
End;

Last days it started to logg I/O error 103. It's running on a Windows 2003
server with F-secure antivirus (same problem with antivirus disabled).
I randomly get "Process error: I/O error 103" and "Open file error: I/O
error 103". Nine out of ten times there is no problem whatsoever!

The machine get's windows updates from WSUS automatically. I run ChkDsk /F
without errors.

Please, any ideas?

Regards, Mikael

Replies:

www.cryer.info
Managed Newsgroup Archive