01-04-2012 12:35 PM
Okay so first off I should state that I am trying to go about troubleshooting a memory leak in a fairly large program that I have. The major problem in the troubleshooting is that the memory leak only seems to show up while running as an executable. I think it would be easier to find if I could use the VI profiler, but that isn't an option in executable form.
I digress from that issue for now though. I have currently settled on using the Desktop Execution Trace Tool to try to watch memory allocates/frees to determine which VI is not freeing the required memory. The program however only allows me to view the data, I need to do some sort of comparison to frees/allocates in order to parse the vast amount of data it produces. I tried the export option only to find that it doesn't actually export anything to the file.
So I feel as of now my best bet is to find a way to read the .ttd file that is generated when the trace is saved. That way I can use labview to parse the file and try to find the culprit VI.
Can anyone help with a way to open a .ttd file in labview? (Or another program that can export it text, Google-Fu is failing me.) Also any other tips for locating a memory leak would be much appreciated. (I feel it would be easier to find if I could establish what types of memory management Labview does in development mode vs. executable, but that's another thing I can't find anywhere.)
Thanks in advance!
01-05-2012 02:49 PM
Hi plist,
Exporting to a .txt file from Desktop Execution Trace is the way to go. Does it create the file, but the txt file is blank? Or is it not creating it altogether? Do you get any error message? Be sure you are specifying the location you want the .txt file to go to.
Regards,
Travis Ann Nylin
01-06-2012 08:29 AM
Sorry about that. Exporting to a text file creates the file, but it doesn't have anything in it aside from header information. I tried this with even a very small sample of data just to be sure it didn't have anything to do with DET running out of memory (which it does quickly) and still had the same problem. I even tried selecting subsets of data before exporting, still nothing.
01-09-2012 03:50 PM
Hey plist,
What version of LabVIEW are you using in conjunction with the Execution Trace Toolkit? There are some known issues in certain iterations of the Execution Trace Toolkit that are similar to what you are describing.
Thanks,
Doug B
National Instruments
Applications Engineer