[pywin32-bugs] [ pywin32-Bugs-3606190 ] win32print.OpenPrinter is blocking
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2013-03-24 14:39:48
|
Bugs item #3606190, was opened at 2013-02-27 02:05 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3606190&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: win32print.OpenPrinter is blocking Initial Comment: In win32print\win32print.cpp, the call to OpenPrinter is not enclosed in a pair Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS. This causes multi-threaded programs to freeze until OpenPrinter returns. OpenPrinter can generally be very slow (see remarks in the Microsoft docs). In my tests it took between 4 and 90 (!) seconds when I tried to access a printer which is connected to a powered-off network PC, before OpenPrinter would return an error. The fix should be simple enough. ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2013-03-24 07:39 Message: This has been fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3606190&group_id=78018 |