G
Guest
I have a dll which is call by an ASP page, this dll has to perform read/write
operations on a file, I seem to be encountering the following error" Process
cannot access xyz.txt cause its held bby another process", is there any way I
can check if the file is being accessed by another process & if so I could
wait till that operation is done. If not is there a way I can make sure only
1 object of a class is created, the singleton approach wouldnt work as it
just allows tme to create one instance, in case of multithreaded applications
it fails.
operations on a file, I seem to be encountering the following error" Process
cannot access xyz.txt cause its held bby another process", is there any way I
can check if the file is being accessed by another process & if so I could
wait till that operation is done. If not is there a way I can make sure only
1 object of a class is created, the singleton approach wouldnt work as it
just allows tme to create one instance, in case of multithreaded applications
it fails.