[pywin32-bugs] [ pywin32-Bugs-1168761 ] win32gui.EnumChildWindows() crashes when no children
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: SourceForge.net <no...@so...> - 2005-03-22 23:52:49
|
Bugs item #1168761, was opened at 2005-03-23 00:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1168761&group_id=78018 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: ingesson (ingesson) Assigned to: Nobody/Anonymous (nobody) Summary: win32gui.EnumChildWindows() crashes when no children Initial Comment: When the method win32gui.EnumChildWindows(hwnd, callback, extra) finds the window for which to return children but the window doesn't have any children it crashes with the error: "pywintypes.error: (0, 'EnumChildWindows', 'No error message is available')". The correct behavior should be to return a empty list. However as Mark has pointed out on python-win32 mail list this may be an unsafe change for already written code expecting an exception if a empty list is returned instead. In which case, at least an exception with a error description should be thrown. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1168761&group_id=78018 |