LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using CVIXML library in a separate thread?

Hello,

I'm trying to use the CVIXML functions for reading an xml file in a separated thread, created with CmtScheduleThreadPoolFunction() and not in the main thread.

Unfortunatley when I call the CVIXML functions, like CVIXMLGetNumChildElements, the thread stops and I must delete the application only from Windows Task Manager.

Does anyone know why?

I have read on the community that before start any call to the functions of the CVIXML library I must call the function

CA_InitActiveXThreadStyleForCurrentThread(NULL, COINIT_APARTMENTTHREADED) in the secondary thread created.

I tried but without success....

Does anyone help me please?

Best regards

0 Kudos
Message 1 of 1
(914 Views)