Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NT Bluescreen when Daqlib is loaded

Hi,
after waiting for a week for a callback of NI germany, maybe I can get some
help in here.

I'm develloping a System with VC 6 SP4 on a NT 4 SP6 System.
There are 3 NI cards installed in the system.

PCI 6032E as device #1
PCI DIO 96 as device #2
PCI 6703 as device #3

I':m using NI-DAQ 6.9.1.
I'd made an OCX with ODBC drivers and NI DAQ Driver linked. this OCX is used
by an acoustic measurement system as the container when the DAQ driver is
loaded and the other measurement system is the container NT crashes with a
bluescreen displaying NIPALK.SYS in the first line.
When I do a remote debugging session with WinDbg, the last trace lines
before the bluescreen were.

.....
ModLoad: 0c3b0000 0c50b000 F:\projects\bin\Debug\HyTest.ocx
ModLoad: 5f700000 5f743000 E:\WINNT\System32\MFCD42D.DLL
ModLoad: 21000000 212be000 E:\WINNT\System32\nidaq32.dll
LDR: Automatic DLL Relocation in ......
it's the other measurement system
LDR: Dll NIPALU.dll base 1f800000 relocated due to collision with
E:\WINNT\System32\ODBC32.dll
ModLoad: 0c510000 0c542000 E:\WINNT\System32\NIPALU.dll
ModLoad: 1ff00000 1ff07000 E:\WINNT\System32\nipalut.dll
ModLoad: 21fa0000 21fa7000 E:\WINNT\System32\niSTCu.dll
ModLoad: 21fc0000 21fca000 E:\WINNT\System32\nibffru.dll
ModLoad: 21fe0000 21fed000 E:\WINNT\System32\nimdsu.dll
ModLoad: 21f00000 21f83000 E:\WINNT\System32\NIScale.dll
ModLoad: 64600000 6460a000 E:\WINNT\System32\nirpc.dll
ModLoad: 19000000 19088000 E:\WINNT\System32\nicfq32.dll
ModLoad: 19190000 191d7000 E:\WINNT\System32\nipsm.dll
ModLoad: 1f700000 1f707000 E:\WINNT\System32\nipal32.dll
ModLoad: 74e40000 74e93000 E:\WINNT\System32\SETUPAPI.dll
ModLoad: 77370000 77381000 E:\WINNT\System32\CFGMGR32.dll
ModLoad: 77710000 77721000 E:\WINNT\system32\MPR.dll

When I reduce the OCX to ODBC and NIDAQ calls and run it in the VC
Testcontainer.
the following symptoms apear.
The OCX is loaded and work correctly, but when I try to run NI MAX and try
to access any device I got a MessagBox like ... initializing nipalu.dll
failed.. the text is translated from german NT so the text may differ..

Any suggestions

regards Rolf Behrens
0 Kudos
Message 1 of 5
(2,717 Views)
Rolf,

It sounds like you need to rebase the NI-DAQ dlls. We have a patch on our website that will do this for you. Your other option is to use the rebasing tools in VC++, and you can do it yourself.

You can download the patch from:

http://digital.ni.com/softlib.nsf/16a19f446db24ce5862568d2005b971c/960515e732471626862569d8006ee1d3?OpenDocument

Hope this resolves your problem.

Regards,
Erin
0 Kudos
Message 2 of 5
(2,717 Views)
Hi Erin
....
>
> You can download the patch from:
>
>
http://digital.ni.com/softlib.nsf/16a19f446db24ce5862568d2005b971c/960515e73
2471626862569d8006ee1d3?OpenDocument
>
> Hope this resolves your problem.
....
I use NI DAQ 6.9.1 (the patch is related to 6.8.1 and 6.9.0) and I'd tried
this before and it doesn't work.

Maybe I have to check the rebasing option. Bur I hope I get a solution from
NI.

thx Rolf Behrens
0 Kudos
Message 3 of 5
(2,717 Views)
This patch also applies to 6.9.1. All it does is changed the preferred load address of the nipalu.dll. Do you actually get an error message that applying the patch fails? If it fails, I would suggest determing the load addresses of all .dlls used by your applications and rebasing nipalu.dll to load to an unoccupied location.

Regards,
Erin
0 Kudos
Message 4 of 5
(2,717 Views)
Erin B. schrieb in im Newsbeitrag:
506500000005000000783E0000-998794254000@exchange.ni.com...
> This patch also applies to 6.9.1.
....
NI Germany told me it doesn't ! But I'd tried it before and get no error
message but the bluescreen appears again.
...
> All it does is changed the
> preferred load address of the nipalu.dll. Do you actually get an
> error message that applying the patch fails? If it fails, I would
> suggest determing the load addresses of all .dlls used by your
> applications and rebasing nipalu.dll to load to an unoccupied
> location.
....
maybe I have to try this.

thx Rolf Behrens
0 Kudos
Message 5 of 5
(2,717 Views)