RE: [pywin32-bugs] win32pdhutil.ShowAllProcesses() crashes
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Stefan S. <SSc...@ds...> - 2003-07-08 06:39:26
|
WinXP implemented the documented return code but Mark did
check only for ERROR_SUCCESS which worked for the other Windows
platforms.
See line 256 in win32pdhmodule.cpp
Was:
if (pdhStatus != ERROR_SUCCESS) {
Should be:
if (pdhStatus != ERROR_SUCCESS && pdhStatus != PDH_MORE_DATA) {
Bye
Stefan
> -----Original Message-----
> From: Christopher Nowzohour [mailto:chr...@gm...]
> Sent: Monday, July 07, 2003 8:38 PM
> To: pyw...@li...
> Subject: [pywin32-bugs] win32pdhutil.ShowAllProcesses() crashes
>
>
> Hello,
> does anybody know why this crashes???
>
> Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license" for more information.
> IDLE 0.8 -- press F1 for help
> >>> import win32pdhutil
> >>> win32pdhutil.ShowAllProcesses()
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in ?
> win32pdhutil.ShowAllProcesses()
> File
> "C:\PROGRA~1\PYTHON22\lib\site-packages\win32\lib\win32pdhutil
> .py", line
> 67, in ShowAllProcesses
> items, instances = win32pdh.EnumObjectItems(None,None,object,
> win32pdh.PERF_DETAIL_WIZARD)
> error: (-1073738824, 'EnumObjectItems for buffer size', 'No error
> message is available')
>
> system: WinXP
> win32all version: 1.5
> Python version: 2.2.2
>
> cu
> Chris
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06
> 1203_01/01
> _______________________________________________
> pywin32-bugs mailing list
> pyw...@li...
> https://lists.sourceforge.net/lists/listinfo/pywin32-bugs
>
|