11-07-2018 06:15 AM
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
Here the prototype in C++
extern "C" int DllExport GAP_TerminateLinkRequest(char reason, char connectionName[CONNECTION_NAME_MAX] = { 0 });
11-08-2018 03:58 PM
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?
11-09-2018 07:19 AM
When I Step Into the dll from teststand, Visual Studio shows me the following error:
And yes, this happens only for empty strings.
11-12-2018 05:31 PM
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?