DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory leak by DQMH clone

hi 

In the application 3 clones of GUI is run ,but the RAM usage is increasing untill Labview crashes.Is this issue with DQMH clones

0 Kudos
Message 1 of 4
(2,506 Views)

Please explain. Perhaps attaching some example code that reproduces the issue might help.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
Message 2 of 4
(2,495 Views)

hi

the programe is a bit large,Through Desktop execution trace toolkit it was found so many memory resize,allocations etc.

a part of code is attached

 

0 Kudos
Message 3 of 4
(2,438 Views)

@Sajeesh wrote:

hi

the programe is a bit large,Through Desktop execution trace toolkit it was found so many memory resize,allocations etc.

a part of code is attached

 


Hi Sajeesh,

 

The code you attached doesn't have any calls to DQMH. We have done multiple applications with cloneable DQMH modules and by themselves, they do not have a memory leak. Seems like the code added to the cloneable modules is causing the issues.

 

Without knowing much about your application, a couple of suggestions I have that have helped us make DQMH modules more performant:

  1. If you are doing memory-intensive operations, keep the DQMH module headless, meaning no GUI for the module. This will avoid having your module swap between the UI thread and other threads. If you are currently displaying things on the module, consider instead sending them to another module. One module does your display, the other module does the data manipulation.
  2. If you are sending large pieces of data in between modules, wrap them in a DVR and send the DVR instead. 

If you post the attached code in the generic LabVIEW forums, others can help you make it more performant.

 

I hope this helps.

 

Best regards,

Fab

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
0 Kudos
Message 4 of 4
(2,405 Views)