09-03-2008 03:54 PM
Actually LabVIEW does start -- but it conks in my initialization code with a fairly deep call stack.
Putting together a small (and non-proprietary) example is not simple. Will work on it some more.
- Steve.
09-03-2008 03:56 PM
Hi,
Is this running on a deployed system using an UI or in the SeqEditor?
Regards
Ray Farmer
09-03-2008 03:58 PM
In the Seq Editor.
- Steve.
09-03-2008 04:13 PM
Hi,
Looking at your attached rtf file, you need to make sure any references you spawn off the Reference you pass to the code module must be released/closed before you return back to TestStand.
eg If you pass SequenceContext into your code module and you create an Engine reference by using SequenceContext.Engine and then create a Globals reference, you must make sure you close the Globals reference and the Engine reference after you have finished with them and before you exit the code module. You dont need to close the SequenceContext as TestStand will release that.
Look at Using LabVIEW with TestStand Appendix C - 6 for an example
Regards
Ray Farmer
09-03-2008 04:23 PM
Hi, Ray,
The conk happens before LV returns to TestStand from the first call.
- Steve.
09-04-2008 12:36 AM
Hi Steve,
So what are you doing in this first LabVIEW call. Are you talking to any hardware?
Regards
Ray
09-04-2008 08:49 AM
Hi, Ray,
Not at that time. I'm building a fairly complicated LVOOP object structure as part of the hardware configuration.
BTW, I've submitted the problem to NI. I still haven't figured out how to cut down the crash to something that would be disclosable on a public forum. But I've made progress, and I'll keep trying.
- Steve.
09-04-2008 10:00 AM
Hi Steve,
Can you step into the LabVIEW code and identify a point just before it crashes?
Regards
Ray
09-04-2008 10:04 AM
Hi, Ray,
Have done so. It crashes just when it tries to invoke a method to configure a certain newly created sub-object. I can't even take a breakpoint at the start of the configure VI; the crash happens before it even starts.
No rhyme or reason to it; the code works fine elsewhere and under other conditions.
- Steve.
09-05-2008 12:21 AM
HI Steve,
So if you take it out or not create the object does it not crash?
Regards
Ray