Why do I Receive Error Code -2147417850 (RPC_E_CHANGED_MODE) when I use NIMX_CopyConfiguration? Primary Software: LabWindows/CVI Development Systems>>Full Development SystemPrimary Software Version: 8.1 Primary Software Fixed Version: N/A Secondary Software: Measurement Studio>>Professional Edition (Base Package), Utility Software>>Measurement & Automation Explorer
Problem: I'm currently using NIMAX_CopyConfiguration in my application, but when the function returns I receive error code -2147417850 (RPC_E_CHANGED_MODE). Why am I receiving this error and what can I do to fix it? Solution: NIMAX_CopyConfiguration returns this error when called from a thread that has initialized the Component Object Model (COM) to use the multi-threaded apartment (MTA) threading model. A thread initializes COM to use the MTA by explicitly calling CoInitializeEx with MTA or by loading another COM component that does so. To resolve this error, you must ensure that the calling thread has not initialized COM or has initialized COM to use the single-threaded apartment (STA) threading model. Related Links: Attachments:
Report Date: 02/27/2007 Last Updated: 03/06/2007 Document ID: 3ZQKQMLT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
