|
-
Mar 20th, 2003, 01:33 PM
#1
Thread Starter
Junior Member
Sharing Violation?
My program is a kind of Digital Library, in which file can be "imported" to the library by inserting its path to a database. I am now implementing a function that can real time detect any file operation performed on file system, and so trigger the database update.
When "REMOVE DIRECTORY" is detected, then all files in that deleted directory will be removed from our database.
However, when i try to remove a directory outside the program when the program is running, the directory CANNOT be deleted, because of sharing violation.
I found that the directory can be deleted before "imported" to the Library, but fail afterwards.
Can anyone tell me where the problem is, and how can i fix it?
-
Mar 21st, 2003, 05:07 AM
#2
how are you detecting the file operation?
-
Mar 21st, 2003, 10:46 PM
#3
Thread Starter
Junior Member
-
Mar 24th, 2003, 05:54 AM
#4
I found that the directory can be deleted before "imported" to the Library, but fail afterwards.
What about returning the path into a separate string variable, performing the actual explorer function then writing this string varible into the database afterward, does this make a difference?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|