LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL works only on Win XP

I built a DLL to program a board by JTAG (through EPP with zlport.sys)
When my CVI application call the function in the DLL, the application crash with the following error:

FATAL RUN-TIME ERROR:
"Jtag.c", line 239, col 9, thread id 0x00000504:
The program has caused a 'Privileged Instruction' fault at 001B:7801BA81.

This problem happens only on a Win 2000 machine, on a Win XP my application doesn’t crash.

Configurations:

Win 2000 machine
SW: LabWindows CVI 7.1 Evaluation
PS: Windows 2000 service pack 4
HW: Pentium III

Win XP machine
SW: LabWindows CVI 7.1
PS: Windows XP
HW: Pentium 4

On both machines I’m logged as Administrator, and on the Win2000 machine I rebuilt the DLL.

Thanks,
MGava
0 Kudos
Message 1 of 6
(3,776 Views)
Hi,
if the information above is correct, you are running the Evaluation Version of CVI 7.1 on the Win 2000 machine.
Have you tried to install the Full Version of CVI on that machine and run your DLL?
Regards,
AlessioD
National Instruments
0 Kudos
Message 2 of 6
(3,764 Views)
What is the instruction that is causing this error? Is this a CVI function or a function from the JTAG library? What is the dll doing? What are the sequence of functions that need to be called to re-create this error?

If this is happening in the JTAG library, you might need to get in touch with the library providers to verify if some operations are not supported in Win2k. I'm not familiar with zlport.sys.
Bilal Durrani
NI
0 Kudos
Message 3 of 6
(3,759 Views)
Hi,

I removed the Evaluation Version of CVI 7.1, and than I created a release executables with the distribuition kit for the Win2000 machine. The problem still persist.
The same when I installed the Full Version of CVI.

MGava
0 Kudos
Message 4 of 6
(3,751 Views)
Some information:

- The DLL: inside the DLL there is only a function "flash_over_jtag" used to program an S_record into an external board. (The DLL need zlport.sys).

- The Jtag.c: this isn't a library, but a file of my application. In this file there are all the functions that use "flash_over_jtag" from the DLL.

- Re-create the error: is easy, when the "flash_over_jtag" is called the application crash on Win2000.

MGava
0 Kudos
Message 5 of 6
(3,750 Views)
Problem fixed!

The zlport need two extra file to work on Win2000.

MGava
0 Kudos
Message 6 of 6
(3,744 Views)