Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NiDAQmx with MSVC2017 and Qt 5.10 gives "Application was unable to start correctly (0xc0000142)"

Hi,

I'm working on using the NiDAQmx ANSI C libraries inside of a Qt application. I copied the 64bit NIDAQmx.lib file and all of the headers from  National Instruments\Shared\ExternalCompilerSupport\C into my Qt project directory, modified the .pro file to point to them, and am able to compile and link without errors. However, the application crashes immediately with the 0xc0000142 error. The modified section of my .pro file is below, with NiSDK containing all libraries and headers from ExternalCompilerSupport. 

 

LIBS += -L$$PWD/NiSDK -lNIDAQmx
INCLUDEPATH += $$PWD/NiSDK
DEPENDPATH += $$PWD/NiSDK

I've also tried eliminating my project-local copy of the library and headers, and instead pointing the .pro file to look directly in the ExternalCompilerSupport subdirectories. This also compiled fine, but crashed with the same error. 

 

Are there additional DLL's I need to make Qt aware of during the build?

 

Thank you,

Tom

0 Kudos
Message 1 of 2
(2,332 Views)