visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: Delphi :: i/o error 32


By: VB guy Canada  Date: 08/07/2003 00:00:00  English  Points: 300 Status: Answered
Quality : Excellent
i am using a directory monitoring component to monitor the changes in a directory. what i want to do is search for a specific type of files in the folder when a file is created in the folder, and read from the file. when a file is created in the folder, i use the Tsearchrec method to search for a specific type of files in the folder. i am simulating the creation of the files in the folder by copying and pasting the files to the folder. I get the 'I/O error 32' message when I try to reset the file for reading. The funny part is that if I first dipslay the filename in a showmessage dialog box I don't get the error. I do not want the user to display the filename as i want the application to be running in the background. Please can you help!
By: earlrainer Date: 08/07/2003 02:03:00 English  Type : Comment

this error occurs if the file does not exist.
try checking if file exists .

note the error can be avoided by unchecking i/o options in compiler options
By: gmayo Date: 08/07/2003 04:32:00 English  Type : Comment
If you know what the specific file(s) is/are, can you not just use a FileExists(filename) call?

Geoff M.
By: gmayo Date: 08/07/2003 04:32:00 English  Type : Comment
If you know what the specific file(s) is/are, can you not just use a FileExists(filename) call?

Geoff M.
By: VGR Date: 08/07/2003 06:22:00 English  Type : Answer
error 32 = "The process cannot access the file because it is being used by another process" (ERROR_SHARING_VIOLATION )

Do register to be able to answer

EContact
browser fav
page generated in 339.872840 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page