Main tallow program haven't attribute STAThreadAttribute so COM objects are
created in multi-threaded apartment and this is problem.
When I use tallow to scan registry changes for SelfRegistered dll which use
DirectX tallow falls with error on (DirectX SDK folder)
\DXSDK\Samples\C++\DirectShow\BaseClasses\dllsetup.cpp, line 426 with error
80010106:
RPC_E_CHANGED_MODE
A previous call to CoInitializeEx specified the concurrency model for this
thread as multithread apartment (MTA). If running Windows 2000, this could
also mean that a change from neutral-threaded apartment to single-threaded
apartment occurred.


So as I understand tallow call COM registration in multithreaded apartment
and then my dll need directshow C++ functions (through DllRegisterServer
function call) which launch CoInitializeEx at some moment.
I change tallow main to STAThreadAttribute and now all it is ok. I think
that it is better to change in tallow in official WIX
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to