[Haskell-cafe] two problems with Data.Binary and Data.ByteString

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Aug 13 08:04:24 EDT 2008


On Tue, 2008-08-12 at 14:13 -1000, Tim Newsham wrote:

> I also noticed another issue while testing.  If my program loads
> the data at startup by calling loadState then all later calls to
> saveState give an error:
> 
>    Log: savedState.bin: openFile: resource busy (file is locked)

You're not using an old version of bytestring are you, anything older
than 0.9.0.4? We had a bug where the handle was not closed as soon as we
got to the end of the stream, so even forcing the whole input didn't
help.

Duncan



More information about the Haskell-Cafe mailing list