[pywin32-bugs] [ pywin32-Bugs-3419597 ] Memory leak on SWbemRefresher
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2011-10-06 13:44:31
|
Bugs item #3419597, was opened at 2011-10-06 21:44 Message generated for change (Tracker Item Submitted) made by mallon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3419597&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: com Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: shajunxing (mallon) Assigned to: Nobody/Anonymous (nobody) Summary: Memory leak on SWbemRefresher Initial Comment: Got a memory leak problem on getting performance data from wmi. For example, when running code below, it can be found in windows task manager that memory usage continue grows. import win32com.client com = win32com.client.Dispatch("WbemScripting.SWbemRefresher") obj = win32com.client.GetObject("winmgmts:\\root\cimv2") while True: com.AddEnum(obj, "Win32_Process") com.DeleteAll() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3419597&group_id=78018 |