[pywin32-bugs] [ pywin32-Bugs-3376041 ] Nondeterministic results from win32net.NetFileEnum
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2011-07-23 15:47:31
|
Bugs item #3376041, was opened at 2011-07-23 00:17 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3376041&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: Jamie (polygnwnd) Assigned to: Nobody/Anonymous (nobody) Summary: Nondeterministic results from win32net.NetFileEnum Initial Comment: On a Windows Server 2008 (really Windows Home Server 2011) system I reliably receive no results for a simple script containing only an import statement and "print win32net.NetFileEnum(3)" when the "openfiles" command returns accurate results (multiple files open). Unexpectedly, see correct results from win32net by duplicating the "print win32net.NetFileEnum(3)" line twice. If I print the empty dictionary to stdout and then print what should be the same result a second time I get correct data instead of an empty dictionary. Part of the oddity is that the print statement in the first call is a necessity. If I assign the results from the first NetFileEnum call to a variable or simply call and ignore the result then the second call always receives an empty dictionary. This is reproducible after rebooting and in the interactive interpreter System is Windows 2008 x64 running Python 2.7.2 x64 and pywin32-216 ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2011-07-23 10:47 Message: The resume handle wasn't properly initialized, fixed in win32netfile.cpp r4149. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3376041&group_id=78018 |