07-10-2018 02:44 AM
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
07-10-2018 03:25 AM
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!
07-10-2018 05:12 AM
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?
07-10-2018 07:38 AM
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.