NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

RunUserInterface cause general protection fault on 2nd run

Solved!
Go to solution

RunUserInterface cause general protection fault on 2nd run.

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.

Manually close the sequence file doesn't help.

 

How to find what resources is holding in memory?

 

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

It sounds like you are perhaps discarding the panel on the first run, but not recreating it on the second run and maybe instead using the now invalid pointer for the panel.

 

-Doug

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

The panel is created by calling LoadPanelEx in a callback function.

If the panel handle is great than zero, RunUserInterface will be called.

When DiscardPanel, panel handle is set to zero.

All in the same callback function.

 

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

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

 

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