LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting memory leaks

Hey,

 

I want to detect memory leaks in my lv-application. I know, there are possibilities to detect them by using static code analysis. But I want to check, if there are any leaks emerging, if when my application runs for a very long time. Do you know any tools, to do something like that?

My application is compiled as an exe.

 

Thanks

Elias

0 Kudos
Message 1 of 4
(3,005 Views)

Do you have Desktop Execution Trace Toolkit (DETT)?

You can see how does LabVIEW handle (allocate, free, reallocate) memory with the tool.

You can also see the behavior of EXE application.

 

I think this article is good for you --> DETT Saves the Day!

 

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
Message 2 of 4
(2,990 Views)

Yes I tried it, yet. But there's another problem about that, which I forgot to mention in my question.

 

I need to run that tests in a full automatic mode, inside a continuous integration-environment. I cannot see any way to do this, by using DETT?

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

I don't know if the desktop execution toolkit has an API you could talk to, however, you could write another application that simply monitors the memory consumed by your main application, and then include that as a part of your test. There are some examples in the example finder that show how to monitor an application's memory usage, though you will have to customize them for your use case. 

Message 4 of 4
(2,955 Views)