09-13-2011 11:53 AM
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?
Solved! Go to Solution.
09-14-2011 09:38 AM - edited 09-14-2011 09:39 AM
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
09-14-2011 10:44 AM
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.
09-14-2011 02:45 PM
Problem solved. There are dynamically created tabs (using EasyTab_ConvertFromCanvas) on the panel, doesn't close.