LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

General protection fault

Hi
 
I am using LabWindows 7.1  and TestStand 3.1, I have written an exported function in CVI containing a double array of 1000000 elements declared, and exported that function to Teststand through dll. I have specified the module using Action step and ran the sequence. I am getting  error saying " General protection fault" and the TestStand window is disappearing. When I change that array size to 10000 the sequence is executing fine.
when I run the funciton as a .exe in CVI It is giving an error saying "Stack overflow", and I have changed the stack maximum limit in cvi to 20000000, then it is excecuting fine. is there anythink like that in TestStand so that we can set the Stack size in TestStand
 
Please help me.
0 Kudos
Message 1 of 3
(3,031 Views)
Is it possible for you to declare the array as static? This will prevent it from being allocated from the stack memory space so you would then not need to fiddle with stack settings.
 
JR
0 Kudos
Message 2 of 3
(3,030 Views)

Hi Wallace,

I declared that array of double as static outside the exported function, that means global to the dll, in this case there is no regarding the stack, working absolutely fine.

When I declare that array of double as static inside the exported function Test Stand is still giving the same error(General protection fault). if the size of the array is very large. how can I achieve this.

Give your valuable suggestion.

 

0 Kudos
Message 3 of 3
(3,021 Views)