Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble auto-starting a NIDAQ app as a service

I built a NIDAQ app using Visual C++ 6.0 as a WinNT/Win2K service. The service can be manually started and stopped on all test systems without a problem. When auto-starting the service, the results are inconsistent. On some machines it starts, on others it fails. When it fails, the error code indicates it failed to load a DLL. By process of elimination, it appears that the NIDAQ DLL's are the problem (i.e., the service auto-starts when the NIDAQ code is commented out). This problem happens with NIDAQ 6.9.2 but not NIDAQ 6.7. Are there some service dependencies that need to be specified?
0 Kudos
Message 1 of 3
(2,981 Views)
At first glance, the error you are seeing reminds me of the problem described in the following knowledgebase:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/38afa6f57a0edc1586256ab2005cc81d?OpenDocument

where a DLL that NI-DAQ depends on is not able to load due to a base address conflict with a Microsoft DLL.

There's a patch included in the KB that might help you fix this problem, if it's even related.

If this doesn't help, I would suggest you post the same question to the DAQ forum.

Regards,
Azucena
0 Kudos
Message 2 of 3
(2,981 Views)
HEllo;

There is a KnowledgeBase that talks about that sort of error.
If you go to www.ni.com and type +exception +error in the search field. The fourth result is the one that I'm referring to.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,981 Views)