ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA debug

Hi all,
I'm using VXIpc871-Systems with NI-VISA rev2.0.5 on about 40 systems.
Every some days my C++ application crashes with an unhandled exception in VISA32.dll.
So I have one system running with Visual Studio debugger activated.
On the call stack I can see a call to viPrintf which causes the exception, like that:

VISA32! 003c8815
VISA32! 003cffa0
VISA32! 003d0064
Call_of_viPrintf_from_my_Function()

P.S.: the version info of the used visa32.dll is:
NI-VISA for Windows 95/NT: VISA32.dll
Version: rev2.0.0.16,
Geändert am: Donnerstag, 28. Januar, 1999, 10:17:14
0 Kudos
Message 1 of 8
(5,428 Views)
Hi all,
I'm using VXIpc871-Systems with NI-VISA rev2.0.5 on about 40 VXI-based systems, 24h per day.
Every some days my C++ application crashes with an unhandled exception in VISA32.dll.
So I have one system running with Visual Studio debugger activated.
On the call stack I can see a call to viPrintf which causes the exception, like that:

VISA32! 003c8815
VISA32! 003cffa0
VISA32! 003d0064
Call_of_viPrintf_from_my_Function()

Does anybody know if there are VC6.0 debug symbols available for visa32.dll
or is it possible to get a source code snipped of viPrintf() and the functions
used by viPrintf()?

Thanks in advance,
Achim


P.S.: the version info of the used visa32.dll is:
NI-VISA for Windows 95/NT: VISA32.dll
Version: rev2.0.0.16
last change: 28. January, 1999, 10:17:14

P.P.S.: The problem even occures on VISA3.2 systems
0 Kudos
Message 2 of 8
(5,419 Views)
Hi Achim,

I have not seen this issue before. What operating system did you try this program with using VISA 3.2? I'd be interested in knowing the OS/driver version combo that seems this error.

john
Applications Engineer
0 Kudos
Message 3 of 8
(5,368 Views)
Hi John,
Thank you for your response. All systems are running under Windows NT4.0 with SP6a
and Ni-Visa 2.0.5 (or Ni-Visa 3.3 on the pilot installation).

Best regards,
Achim
0 Kudos
Message 4 of 8
(5,352 Views)
Hi Achim,

This may have been a problem in earlier versions of VISA that has not occurred for us with the newest versions of the driver with a more recent operating system. Have you tried this program on a computer using Windows XP or 2000 with VISA 3.2?

john
0 Kudos
Message 5 of 8
(5,337 Views)
Hello John,
I did not yet try to reproduce the behaviour on a newer XP controller but since some days we have one available.
But I would prefer to take a look into the implementation of viPrintf() and viQueryf().
Do you see a possibility to get some source code snippets or debug symbols for the visa32.dll rev2.0.5?

Best regards,
Achim
0 Kudos
Message 6 of 8
(5,323 Views)
Hi Achim,

The source code for NI-VISA is proprietary to National Instruments, and we will unfortunately not be able to provide any snippets. I am sorry that we cannot help you in this regard. However, I am very interested to see if this issue has been resolved with a newer version of NI-VISA. If not, we will certainly investigate and correct any bugs encountered. If it is at all possible to try this code on a newer OS with the latest version of VISA, we would be very interested in knowing what happens!

Thank you for your understanding in this. Have a great day!

john
0 Kudos
Message 7 of 8
(5,312 Views)
Hi John,

Thank you for your reply. I undertstand that NI doesn´t want to publish source code snippets,
but a .pdb debug symbol file would inherently be a great help.
In the meantime I will take an VXIpc-875 with XP and NI-VISA3.3 to see,
if the problem occur here,too. Then I will inform you not later than in one or two weeks,
if the XP pilot installation is still running without crashing.

Have a good week,
Achim
0 Kudos
Message 8 of 8
(5,301 Views)