[pywin32-bugs] [ pywin32-Bugs-1927604 ] PyCom_PyObjectFromVariant won't convert VT_VARIANT
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: SourceForge.net <no...@so...> - 2008-04-08 11:46:43
|
Bugs item #1927604, was opened at 2008-03-28 11:05 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1927604&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: Invalid Priority: 5 Private: No Submitted By: Brad Johnson (urban_dk) Assigned to: Nobody/Anonymous (nobody) Summary: PyCom_PyObjectFromVariant won't convert VT_VARIANT Initial Comment: Any attempts to use the function PyCom_PyObjectFromVariant with an input variant of type VT_VARIANT will fail with "E_OUTOFMEMORY." Should this function recurse until it finds a different variant type underneath? IDispEventSimpleImpl clients from ATL will handle this case correctly, does that mean this is a bug :-)? ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2008-04-08 21:46 Message: Logged In: YES user_id=14198 Originator: NO I'm afraid this appears invalid. I made a patch to the test suite, which does work correctly for in-process clients - but fails with E_INVALID_PARAM when executed as a LocalServer (ie, as an external process). It appears the COM marshaller is raising this error, implying it doesn't know how to move such a variant between processes. If anyone can find evidence to the contrary, please re-open. File Added: variant_in_variant.patch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1927604&group_id=78018 |