Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to initilize while loading NIDAQ dlls

I am using nidaq library in vc++.
My application runs fine if i login windows 2000 with administrator access right but if i login as normal user,
it fails to load nidaq related dlls and gives message as initilization failed NTDLL bla bla bla ....
Any solution to run application in normal users preview.

I am using NIDAQ not NIDAQMAX

Regards,
Deepak
0 Kudos
Message 1 of 8
(4,691 Views)
Hello,

One possible reason is that the restricted user does not have sufficient privileges. You need write access to the HKEY_LOCAL_MACHINE\Software\National Instruments\NI-DAQ registry key. If you do not have write access as a restricted user, you need to change the permissions in the registry.

Complete the following steps to change the permissions on a Windows 2000 or NT 4.0 machine.

1. Log in as the administrator.

2. Go to Start»Run and enter Regedt32.

3. Browse to the HKEY_LOCAL_MACHINE\Software\National Instruments\NI-DAQ registry key.

4. Go to Security»Permissions.

5. Add the group or user name and give full control over the key. Enable the Replace Permission on Existing Subkeys checkbox.

Please let me know if this solved the problem.

Regards,

LA
0 Kudos
Message 2 of 8
(4,673 Views)
I did provide the proper security permissions but still error persists.
I have run the Measurement automation application provided by NI with the same windows user, it runs fine.
Am i missing something??????

Regards,
Deepak
0 Kudos
Message 3 of 8
(4,661 Views)
Hello,

Can you please tell me the exact error message you are getting? That will help me out determine what's the exact cause of the problem.

Thanks,

LA
0 Kudos
Message 4 of 8
(4,640 Views)
I have also been experiencing this problem. I am running a C++ application which uses the traditional NIDAQ library (version 7.1) and Windows NT 4, sp6. The application works when I am logged on as an Administrator. When I log on with an account that has less permissions, I get the following error.
"DLL Initialization Failed
Initialization of the Dynamic Link Library C:\WINNT\System32\nimdbgu.dll failed. The process is terminating abnormally."
I have given the user account Change permissions on C:\Program Files\National Instruments and C:\WINNT\System32. I also gave Everyone Full Control of the registry branch "H_KEY_LOCAL_MACHINE\Software\National Instruments".
However, I still cannot run the application without getting that error. I do not want the user to have to be an NT Administrator in order to run the application. Any suggestions?
0 Kudos
Message 5 of 8
(4,577 Views)

Try installing NI-DAQ 7.4 and see if that solves the problem.

Regards,

LA

0 Kudos
Message 6 of 8
(4,567 Views)
I installed NIDAQ 7.4, but this did not solve the problem. Any other suggestions?

Regards,
ARB
0 Kudos
Message 7 of 8
(4,520 Views)
Hello,

I'll look into this and will let you know what I find out next week.

Regards,

LA
0 Kudos
Message 8 of 8
(4,494 Views)