Languages :: Delphi :: i/o error 32 |
|||
| By: VB guy |
Date: 08/07/2003 00:00:00 |
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 | 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 | 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 | 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 | 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 |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








