[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-04-12 03:47:01
|
Bugs item #1168761, was opened at 2005-03-23 10:52 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1168761&group_id=78018 Category: None Group: None >Status: Closed >Resolution: Wont Fix 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. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-04-12 13:46 Message: Logged In: YES user_id=14198 I don't think this should be fixed. The underlying API function is indeed returning FALSE, so we report that as an exception. As it is not our error detection logic which is at fault, there isn't anything to fix. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1168761&group_id=78018 |