On 15/11/2009 09:01, Petr Ročkai wrote:
>
> Petr Ročkai<me@mornfall.net> added the comment:
>
> Applied, thanks. (I have added a comment with a link to the GHC ticket. I am not
> sure this is yet fixed in 6.12, even. We can watch the ticket anyway.)
I'd be careful here. There are various things that can give rise to
"permission denied" errors on Windows, some of which we understand and
some of which we don't. That GHC ticket (#2924) is an issue we don't
currently understand, but it may well be that the issue you have is
something that you can fix in darcs, e.g. holding an open Handle to
something in the directory.
Another reason to be cautious is that the workaround (performGC) looks
very expensive. And indeed if that is a workaround, then it indicates
that perhaps you have a finalizer waiting to run. Or perhaps it's just
the case that waiting a little while avoids the problem: in which case
doing exactly that (threadDelay) might be a better workaround.
Cheers,
Simon
|