Bugs item #1063508, was opened at 2004-11-10 00:24
Message generated for change (Comment added) made by jodyburns
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1063508&group_id=78018
Category: win32
Group: None
Status: Closed
Resolution: Wont Fix
Priority: 5
Submitted By: Jody Burns (jodyburns)
Assigned to: Nobody/Anonymous (nobody)
Summary: LockFileEx does not return outcome of lock operation
Initial Comment:
When win32file.LockFileEx is called, it returns None
instead of the success/failure of the lock operation.
When used with non-blocking locks it is impossible to
tell if a lock has succeeded or not.
I have attached a program demonstrating this behavior.
When the program is run, it attempts to lock itself
but has no way of knowing it the lock succeeded.
----------------------------------------------------------------------
>Comment By: Jody Burns (jodyburns)
Date: 2004-11-10 20:01
Message:
Logged In: YES
user_id=308517
Ah, you are correct. Sorry to bother you and thanks for
your assistance.
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2004-11-10 08:22
Message:
Logged In: YES
user_id=14198
Like most other pywin32 functions, this one raises an
exception of the API call fails. The operation succeeded if
it did not raise win32file.error.
Let me know (and re-open the bug) if I misunderstood.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1063508&group_id=78018
|