cp engr
unread,Jan 9, 2015, 7:17:22 PM1/9/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cppu...@googlegroups.com
Hi,
We’re migrating from Visual Studio 2010 to 2013, so I need to move my unit tests to that platform. I’m getting a test failure on 2013 that I didn’t get on 2010. I see why it’s happening, but I don’t see why the platform migration should make any difference.
The test failure I’m getting is a memory leak detection. This is because there is purposely one place where we malloc() once, and never free(). The memory remains allocated for the life of the program. (There is a static bool that is used to ensure that the malloc() only ever gets called once.) Since it’s a C program, there’s no destructor to put the call to free() in…and it wouldn’t make sense for the embedded application, anyway.
I’d like to keep the memory leak detection on, but just disable it in this once instance. Is that possible?
Thanks,
cpengr