DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference Leak using cloneable module?

Hi, I have created an application that launches two clone modules for two power supplies.  When the program ends, I noticed that there were two Reference Leaks.  I took a screen shot of the results from Desktop Execution Trace Toolkit.  I am not sure what is happening.  I have attached screenshots for how I initialized the modules and how I stop them.  I have also attached the main.vi of my PSU module.

 

Anyone have an idea why these Reference Leaks were occur? Thank you

 

 

 Screenshot 2022-01-06 142459.png

 

psumodinit.pngPSUModStop.png

0 Kudos
Message 1 of 3
(1,550 Views)

I see that you're passing the broadcast events from both instances of the PSU Start Module vi into separate User Event inputs on the DQMH_REG_EVENTS node.  You don't want to do that.  Just pass it from one of them.

 

Christopher Farmer

Certified LabVIEW Architect and LabVIEW Champion
DQMH Trusted Advisor
https://wiredinsoftware.com.au

Message 2 of 3
(1,537 Views)

"Reference Leaks" in the DETT are references closed by LabVIEW when a VI stops.  Sometimes this is an actual leak, but sometimes this is a deliberate architectural design decision.  Don't know about details of DQMH, but you'll find a "leak" or two in the Actor Framework, for example.  So I wouldn't worry about two supposed leaks.  The thing to worry about is a growing leak, that keeps producing references until failure. 

Message 3 of 3
(1,495 Views)