LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

RunUserInterface cause general protection fault on 2nd run

Solved!
Go to solution

CVI 7.1.1

CVI Dll called by TestStand 3.1.1

 

When run the sequence 2nd time, RunUserInterface cause general protection fault.

Manually unload all modules in TestStand doesn't help.

However, manually stop tscvirun in CVI, after 1st run, works.

DiscardPanel is called in the 1st run.

 

How to find what resources is holding in memory?

 

TIA.

 

George Zou
0 Kudos
Message 1 of 4
(3,491 Views)

Hi George,

 

All steps in Teststand are loaded at sequence execution by default and not unloaded until the sequence is unloaded from memory. To change this, go into the Run Options of the Step Settings Properties and modify the Load and Unload Options.

 

Memory Steps.png

 

I hope this helps and wish you luck on your project!

 

Regards,

Jackie

DAQ Product Marketing Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,481 Views)

Still got general protection fault after I changed the unload option to unload after execution, and manually close the sequence file.

Is there a way to automatically stop tscvirun ?

tscvirun is still running even I close the sequence file.

 

 

George Zou
0 Kudos
Message 3 of 4
(3,477 Views)
Solution
Accepted by topic author zou

Problem solved.  There are dynamically created tabs (using EasyTab_ConvertFromCanvas) on the panel, doesn't close when discard panel.

 

George Zou
0 Kudos
Message 4 of 4
(3,467 Views)