[Haskell-cafe] Working around file locking in Windows

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Aug 13 01:40:45 EDT 2009


Hello Patai,

Thursday, August 13, 2009, 12:01:12 AM, you wrote:

> I'm trying to make the hp2any suite to be fully functional under
> Windows, but I'm running into permission errors when I try to read the
> heap profile that's still being written by its producer. Is there a way
> to solve this problem without turning to the Win32 interface and having
> to write platform specific code?

this probably need to open file in shared mode, that isn't supported
by Haskell libraries. i think the best you can do is to open FD in
shared mode and then convert it to System.IO.Handle



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list