05-07-2012 12:01 AM
I was running three execution threads, when one of them started getting an out of memory error in the Report Write sequence (stock).
After closing down, I got the message below. Any ideas where to look?
The Engine.ReleaseSequenceFile(Ex) method was not called for the following files:
C:\Program Files\National Instruments\TestStand 2010 SP1\Components\Models\TestStandModels\reportgen_xml.seq
C:\Program Files\National Instruments\TestStand 2010 SP1\Components\Models\TestStandModels\SequentialModel.Seq
References to PropertyObjects were not released properly.
Total number of objects: 830936
Number of top-level objects: 146
Note: Some top-level objects may be included if they are referenced by
an incorrectly released top-level object. For example, an unreleased
SequenceContext object references a SequenceFile object.
The following top-level objects were not released:
SequenceContexts [2 object(s) not released]
SequenceContext #1:
The context last executed sequence 'Single Pass' in file 'SequentialModel.Seq'.
SequenceContext #2:
The context last executed sequence 'TestReport' in file 'SequentialModel.Seq'.
Files [2 object(s) not released]
SequenceFile #1:
Path: C:\Program Files\National Instruments\TestStand 2010 SP1\Components\Models\TestStandModels\reportgen_xml.seq
SequenceFile #2:
Path: C:\Program Files\National Instruments\TestStand 2010 SP1\Components\Models\TestStandModels\SequentialModel.Seq
Sequences [2 object(s) not released]
Sequence #1:
Name: TestReport
Sequence #2:
Name: Single Pass
PropertyObjects [132 object(s) not released]
PropertyObject #1:
Type: Array of Containers
PropertyObject #2:
Type: Array of Containers
PropertyObject #3:
Type: Array of Containers
PropertyObject #4:
Type: Array of Containers
PropertyObject #5:
Type: Array of Containers
PropertyObject #6:
Type: Array of Containers
PropertyObject #7:
Type: Array of Containers
PropertyObject #8:
Type: Array of Containers
PropertyObject #9:
Type: Array of Containers
PropertyObject #10:
Type: Array of Containers
PropertyObject #11:
Type: Array of Containers
PropertyObject #12:
Type: Array of Containers
PropertyObject #13:
Type: Boolean
Value: True
PropertyObject #14:
Type: TEResult
PropertyObject #15:
Type: Obj
PropertyObject #16:
Type: ActiveX Reference
Value: Nothing
PropertyObject #17:
Type: String
Value: "Parameters.MainSequenceResults.TS.SequenceCall"
PropertyObject #18:
Type: String
Value: "xml"
PropertyObject #19:
Type: Number
Value: 0
PropertyObject #20:
Type: String
Value: "Locals.ResultList[0]"
PropertyObject #21:
05-07-2012 05:58 AM
Are you running this in NI Sequence Editor or a custom user interface?
After the Out of Memory error message: Did you abort the execution or was it stopped automatically? If you aborted it, why didn't you choose terminate instead?
All in all you are running out of memory because reporting puts together the report string. Have you tried to reduce memory usage by limiting the steps reporting to ResultList? Have you tried On-The-Fly-Reporting with option to conserve memory?
hope this helps,
Norbert
05-07-2012 09:59 AM
It was Aborted since it was hanging over and over.
Thanks fot the info. I forgot about the OTF reporting (we aren't even using that report, so I will probably just turn it off).