[pywin32-bugs] [ pywin32-Bugs-3486072 ] PyCWnd.SetActiveWindow raises invalid error
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2012-02-09 08:05:07
|
Bugs item #3486072, was opened at 2012-02-09 00:05 Message generated for change (Tracker Item Submitted) made by kxroberto You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3486072&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: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: kxroberto (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: PyCWnd.SetActiveWindow raises invalid error Initial Comment: PyCWnd.SetActiveWindow() sometimes fails with "The window was created in a different thread and can not be mapped.", though the function did its job. Thats obviously (just) because it tries to convert the return value (previous window / CWnd* may be temporary according MSDN) with "return PyCWnd::make( UITypeFromCObject(pRel), pRel)->GetGoodRet();" which uses FromHandlePermanent and some thread check or so. Perhaps it needs a less rigid converter or return Non instead of failure. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3486072&group_id=78018 |