07-23-2007 02:06 AM
07-24-2007 03:03 AM
07-24-2007 03:41 AM
08-23-2007 02:50 AM
12-12-2008 02:54 PM
Hi:
I'm trying out the Resource Tracking window in CVI 9.0 and I see the same problem. The TS_LoadMenuBarResourceStrings function appears to be not freeing memory and some active x objects. I'm using Teststand 4.0.1f1. Any updates on fixing this problem?
Cheers,
Dave
12-15-2008 07:17 AM
Hello Dave.
I found this KB for your problem.
I hope it will help you.
Let me know if it's ok for you.
Have a nice day.
Regards.
Romain D.
National Instruments France
12-15-2008 07:31 AM
Hi:
This is not a function call I added myself. If I compile and run the default Labwindows CVI Full Featured User Interface, then the TS_LoadMenuBarResourceStrings call appears to have a memory leak. Are there additional lines of code I can add to free up this memory somehow? If I comment out this line the memory leak goes away (but of course, my menu titles aren't updated correctly).
Thanks,
Dave
12-15-2008 07:58 AM
Could you give me your code or a part of it which reproduces the problem please?
I will have a look and give you a reply when I know more about this memory leak.
Thanks.
Romain D.
National Instruments France
12-15-2008 08:03 AM
It is the default full featured CVI user interface project. See attached.
If you launch it in debug mode from CVI with the resource tracker enabled, and then close the interface without doing anything, then you should see memory and active x objects not released. I was able to narrow this problem down to the menu function call.
Cheers,
Dave
12-23-2008 07:25 AM
Hello,
It's not necessary a memory leak.
The memory block allocated you see in the debug not be a memory leak. The memory you see there contains dynamic memory allocated by user (the programmer) and some CVI instrument drivers.
So in the TestStand example, it uses the TestStand API, UI Controls, Support Library, and Utility Functions. CVI is reponsible to clean up those memory after the execution.
In fact, if you go to any example that is using an instrument driver, such as the XML one in toolbox folder, you will see that it doesn't release all memory at the end either.
Regards,
Nacer M. | Certified LabVIEW Architecte