[BFAV] "Couldn't delete old version of file" exception revisited
Brent Vukmer
bvukmer at blackboard.com
Fri Feb 27 04:26:46 UTC 2004
> Typically what happens to cause this is a filestream gets left open and
> is awaiting execution by the registry. A garbage collect will detect the
> weak oop and cause the executor to run, closing the file and
> releasing the FILE pointer in the VM. Then you can delete the file.
>
> Most likely the answer is a simple code change to make sure the file is
> closed explicitly.
Thanks Tim. Yep, that looks like the culprit all right. I've trawled through the file-handling code putting an ensure: block around every file-opening, that closes the file explicitly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2933 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040226/e0dc081f/attachment.bin
More information about the Squeak-dev
mailing list
|