[pywin32-bugs] Byte range locking with Lockfileex has side effects
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Pascal C. <pyt...@gm...> - 2009-07-16 11:42:44
|
Hello I don't know yet if it's a pywin32-specific bug, but locking file ranges with lockfileex currently prevents other processes from reading previous parts of the files : read operation on python file objects return IOErrors, and read operations on handles obtained via CreateFile() return empty strings. Normally, as long as we dont read or write (depending on teh type of lock) the locked range, we shouldn't have any troubel, should we ? Has anyone around already used concurrent file accesses with lokfile ex ? Here are two python scripts showing the problem - just launch the first one, then in parralel teh second one. regards, Pascal Chambon |