Bugs item #3017949, was opened at 2010-06-18 04:15
Message generated for change (Comment added) made by rupole
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3017949&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: pythonwin
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Greg Hazel (ghazel)
Assigned to: Nobody/Anonymous (nobody)
Summary: pythonwin leaks directory handles, holds directory open
Initial Comment:
Pythonwin seems to keep an open handle to a directory after opening and closing a file. Here's a demonstration:
... make sure PythonWin is closed ...
J:\>mkdir test
J:\>cd test
J:\test>echo > foo
J:\test>pythonwin foo
... close 'foo' in PythonWin, but do not close PythonWin ...
J:\test>cd ..
J:\>rmdir /S /Q test
The process cannot access the file because it is being used by another process.
J:\handle test
Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
Pythonwin.exe pid: 5468 8: J:\test
Pythonwin.exe pid: 5468 208: J:\test
J:\>handle -p pythonwin
Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
------------------------------------------------------------------------------
Pythonwin.exe pid: 5468 greg-x60\Greg
8: File (---) J:\test
C: File (---) C:\Windows\winsxs\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.4974_none_4bf89ae8bf9a48c0
10: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
18: File (---) C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16385_none_ebf82fc36c758ad5
5C: File (---) C:\Windows\winsxs\x86_microsoft.vc90.mfcloc_1fc8b3b9a1e18e3b_9.0.30729.4974_none_497745fb754785d2
84: File (---) C:\Windows\winsxs\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.4974_none_4bf89ae8bf9a48c0
88: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
8C: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
90: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
C8: File (---) C:\Windows\System32\en-US\KernelBase.dll.mui
D8: File (---) C:\Windows\winsxs\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_9.0.30729.4974_none_4bf89ae8bf9a48c0
DC: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
100: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
110: File (---) C:\Windows\Fonts\StaticCache.dat
120: File (---) C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc
124: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
130: Section \Sessions\1\BaseNamedObjects\windows_shell_global_counters
138: File (---) C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb
14C: File (---) C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc
16C: Section \BaseNamedObjects\__ComCatalogCache__
178: Section \BaseNamedObjects\__ComCatalogCache__
188: Section \BaseNamedObjects\windows_shell_global_counters
208: File (---) J:\test
It will continue to add one handle to J:\test for each time J:\test\foo is opened.
----------------------------------------------------------------------
>Comment By: Roger Upole (rupole)
Date: 2010-06-18 12:30
Message:
The thread that monitors files for external changes wasn't releasing its
change notification handle.
Fixed in document.py r1.15.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3017949&group_id=78018
|