Exception: File is being used by another process
Posted: Mon Nov 11, 2013 11:08 am
Hi,
I´m using XE3 (CodeGear / Embarcadero) and XLSReadWriteII 5.
My code requires cyclical reads and writes from XLSX file.
By now the XLSX file has less tahn 500KB size.
I´m getting often an execption at the middle of the executation of my code, that the file is being used by another process... when it happens I need to abort the executation of my code.
The unique process that is using that file is the code that I´m running. It seems that the write to my file takes to much time and then when I have the next write action it will not be possible because the XLS file still being write...
In order to solve this issue I would like to know, what Flag could be used to test is any XLSX file is ready to be saved/readed....If the flag would state that file is not ready I would implement a delay in ordert to try to get acess later.
Could you point me out what flat would I test... or point another work arround.
thanx
I´m using XE3 (CodeGear / Embarcadero) and XLSReadWriteII 5.
My code requires cyclical reads and writes from XLSX file.
By now the XLSX file has less tahn 500KB size.
I´m getting often an execption at the middle of the executation of my code, that the file is being used by another process... when it happens I need to abort the executation of my code.
The unique process that is using that file is the code that I´m running. It seems that the write to my file takes to much time and then when I have the next write action it will not be possible because the XLS file still being write...
In order to solve this issue I would like to know, what Flag could be used to test is any XLSX file is ready to be saved/readed....If the flag would state that file is not ready I would implement a delay in ordert to try to get acess later.
Could you point me out what flat would I test... or point another work arround.
thanx