D
David Veeneman
Is there any way to forcibly release a lock on a text file, so that it can
be deleted?
I am testing an order-processing site that saves transaction information in
a text file that it attaches to its merchant notification. In most cases, it
works fine, but occasionally a lock on the text file won't get released.
When the next transaction comes along and tries to write over the file, the
server throws an IO error, saying that the file is in use by another
application.
What I'd like to do is forcibly release the lock, so that the file can be
deleted. Is that the right way to go about it? If so, how do I do it? If
not, what would be the best approach? Thanks.
David Veeneman
Foresight Systems
be deleted?
I am testing an order-processing site that saves transaction information in
a text file that it attaches to its merchant notification. In most cases, it
works fine, but occasionally a lock on the text file won't get released.
When the next transaction comes along and tries to write over the file, the
server throws an IO error, saying that the file is in use by another
application.
What I'd like to do is forcibly release the lock, so that the file can be
deleted. Is that the right way to go about it? If so, how do I do it? If
not, what would be the best approach? Thanks.
David Veeneman
Foresight Systems