[pywin32-bugs] [ pywin32-Patches-3612197 ] Add COM threads wrapper classes
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2013-04-29 14:21:41
|
Patches item #3612197, was opened at 2013-04-29 07:21 Message generated for change (Tracker Item Submitted) made by sschukat You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=3612197&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Stefan Schukat (sschukat) Assigned to: Nobody/Anonymous (nobody) Summary: Add COM threads wrapper classes Initial Comment: COM requires a specific setup for a thread to function correctly. - Interface passing has to be done by marshaling - the thread has to be initialized for a specific apartment type - every create COM object has to be released before the thread has been uninitialized fro COM - STA thread join has to do message pumping This handling is tedious and requires specific knowledge. Hence this patch provides wrapper classes which takes care of the needed environment. These classes have the same interface as the standard threading.Thread classes and could be used in the same way. Unit tests are provided using Microsoft Word as COM server. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=3612197&group_id=78018 |