Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

NiGraph OLE error

I want to display a dialog box with a NiGraph but when i do a ""DoModal" the box does not appear and the fonction return -1 with these warnings:

OleInitialize returned scode = RPC_E_CHANGED_MODE ($80010106).
CreateDlgControls failed during dialog init.

Cwui.ocx is already registered.

Please help me!!
0 Kudos
Message 1 of 2
(3,440 Views)
That error typically occurs when you try to initialize COM in a thread in which COM is already initialized and you specify a different threading model than was specified the first time.

Are you explicitly calling CoInitializeEx somewhere else in the same thread? Are you using the Measurement Studio CNiGraph C++ class wrapper for the ActiveX control? If so, what version of Measurement Studio are you using?
Message 2 of 2
(3,434 Views)