[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...> - 2012-01-08 01:06:39
|
Bugs item #3419597, was opened at 2011-10-06 06:44 Message generated for change (Comment added) made by mhammond 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: Closed >Resolution: Wont Fix Priority: 5 Private: No Submitted By: M@llon (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() ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2012-01-07 17:06 Message: We have some leak detection code in the win32com test suite and as the loop you show is so simple (just 2 method calls), I'm afraid I must conclude the leak is in WMI itself. Maybe you could see if a WScript script does the same thing? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3419597&group_id=78018 |