LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get "The exception Privileged instruction (0xc0000096) occured in the application" error message when exiting LabVIEW 6.1?

I have created a vi that uses the LV-GPIB and database connectivity vis. The program runs fine and it ends execution by running the "Close Database Connection.vi".

After closing out my front panel windows and exiting LabVIEW 6.1, I get an error dialog box that reads the message "The exception Privileged instruction (0xc0000096) occured in the application". What does this error mean and how do I resolve it?

Thanks,
Taf
0 Kudos
Message 1 of 4
(14,018 Views)
Hi Taf,

Given the broad scope of your application, it may be best to try and isolate the problem down by taking out parts of your application and simplifying it down as much as possible until you can get a consistent version that throws this exception. I would first try to take out either the GPIB or database connectivity portions of the application to narrow down our problem. This error generally occurs when accessing DLLs and external applications, so I wouldn't be surprised if it's the GPIB or database. Let's try to see exactly which one it is and then we can dig deeper into that part of the code. Thanks for your cooperation!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
Message 2 of 4
(14,018 Views)
Jeremy,

Thanks for your input! I forgot to post an answer about 2 weeks ago--We found out the problem was with the GPIB driver--as you have guessed in your response.

We were using a laptop with WIN 2K and had installed a Measurement Computing GPIB driver--a different 488.2 DLL. When we ran the software on this laptop, there was no USB-GPIB hardware attached to it. This caused the exception error to occur.

I have in the past not seen the same problem with the National Instruments 488.2 driver.

Regards,
Taf
0 Kudos
Message 3 of 4
(14,018 Views)
Hi Taf,

Thanks for the followup! I would assume from your post that using the NI 488.2 driver does not give you that exception and the application works. If you run into more problems, please give us a call, email us, or post another question on our forum. Thank you for using National Instruments!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 4 of 4
(14,018 Views)