Last post Sep 12, 2012 10:34 PM by nikitha
Sep 12, 2012 07:01 AM|nikitha|LINK
Hi all,I have a docx file in my server and the user login will copy the file to another file and do some process.if the same time when another user login and copy it throws error(fuile is being processed by aanother user).pls can any one tell how to use
thread.sleep concept and will it work?
atpresent it throws error and stops the
Sep 12, 2012 07:09 AM|Prince Srivastava|LINK
when your doc file open then do not foget to close this . the error is because doc file are open .so close your file in your code
hope this will help you
Sep 12, 2012 07:11 AM|santosh.jagdale|LINK
If you have multiple threads attempting to access the same file, consider using a locking mechanism.
Sep 12, 2012 10:34 PM|nikitha|LINK
Hi iam copying file using
file.copy(sourcefile,destinfile).can u tell me how to code using locking mechnaism in this