Working around file locking in Windows

Hello all, 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? Gergely -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/docs/quotes.html

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@gmail.com
participants (2)
-
Bulat Ziganshin
-
Patai Gergely