NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I execute CString s = Step.GetName() without any memory leak?

I am using TestStand 1.02 in a DLL.
Best Regards,
Mats
0 Kudos
Message 1 of 2
(2,965 Views)
Hi MatsA,

Why would this leak? 's' will be destroyed once it goes out of scope. I would imagine the destructor of the CString would clean up any memory allocated by the object. The Step object reference you have may have to be destoryed. Are you encountering memory problems?

Bob
0 Kudos
Message 2 of 2
(2,965 Views)