From 12:00 AM CDT Sunday, October 17 - 11:30 AM CDT Sunday, October 17, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

System Level Exception. Error code -17502

Hi,

I have an initialize test step which is written in LabWindows/CVI and I call
that step from TestStand.

In that test step I initialize one dll, first I load DLL (the handle goes to
the global variable) and finally I get the function pointers. When this step
ends, I go back to the TestStand and I got this error. Do you know what is
wrong and how should I do this dll loading because I need this handle later?
TIA,

-Harri
0 Kudos
Message 1 of 2
(4,418 Views)
I think something must be happening in either the DLL_PROCESS_ATTACH: of DLL main in the loaded dll. It might be trying to do something which can be causing the system level exception.

System level exception can also be caused because you are calling a dll function incorrectly ie passing a I16 instead of a I32 in the parameters.
I might also be trying to call/release a function reference which is not valid.

I would suggest you to step into your code and make sure that all your reference are valid if and when you call/release them.

You might want to try to trap the 17502 error by following the Knowledge Base link given below

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/a92cf6b69941b35d862568d900693df5?OpenDocument

Anand Jain
Applications Eng
ineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(4,418 Views)