NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error closing references after creating sequence file in LabView

Solved!
Go to solution

Hi all,

 

I'm getting an error message about not closed references after creating a sequence file in LabView:

 

References to PropertyObjects were not released properly.
Total number of objects: 49
Number of top-level objects: 5

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:

Files [1 object(s) not released]
SequenceFile #1:
Path: D:\Project1.seq


Type Definitions [1 object(s) not released]
Type Definition #1:
Name: Path


PropertyObjects [2 object(s) not released]
PropertyObject #1:
Type: Number
Value: 0

PropertyObject #2:
Type: Number
Value: 0


And the following uncategorized objects:
TypeUsageList

 

Can you please help me finding out what goes wrong here?

Best regards
J. Ludwig
0 Kudos
Message 1 of 3
(2,265 Views)
Solution
Accepted by topic author J.Ludwig

The following top-level objects were not released:

Files [1 object(s) not released]
SequenceFile #1:
Path: D:\Project1.seq


You didn't close the reference to the sequence file returned by NewSequenceFile. Try something like this:

leak.PNG

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 3
(2,228 Views)

Thanks, WireWeaver,

 

I thought that calling ReleaseSequenceFileEx would do that.

Now I don't get error messages anymore.

Best regards
J. Ludwig
0 Kudos
Message 3 of 3
(2,108 Views)