NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

system level exception when passing a char[] to Teststand 2012 c++ dll

I want to pass a char[] from teststand to c++ dll. When I send an emtpty string from teststand I get a system level exception.

Here my prototype in Teststand

TestStand prototype.png

Here the prototype in C++

extern "C" int DllExport GAP_TerminateLinkRequest(char reason, char connectionName[CONNECTION_NAME_MAX] = { 0 });
0 Kudos
Message 1 of 4
(2,941 Views)

Could you provide a screenshot of the error you are receiving? Also, this seems to imply that any value other than an empty char[] fails to produce this exception, is that correct?

 

Kevin S.
Technical Support Engineering
National Instruments
0 Kudos
Message 2 of 4
(2,910 Views)

When I Step Into the dll from teststand, Visual Studio shows me the following error:

image.png

And yes, this happens only for empty strings.

0 Kudos
Message 3 of 4
(2,905 Views)

Well, access violation errors typically occur when a user application tries to access protected memory.

 

Is there a way to tell if TestStand successfully passes the command to the dll? It'd be nice to find the absolute source of the issue, whether it is TestStand passing it (likely not) or the DLL trying to access it (potentially).

 

Is there another DLL you could try passing an empty char to?

Kevin S.
Technical Support Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,887 Views)