cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Debug Leak Memory in Visual Studio

AymericJST
5-Regular Member

Debug Leak Memory in Visual Studio

Hi,

I'm trying to search memory leak into the code of the dll that the compay inside wich one i'm working has developed for Creo 2.0.

Indeed the dll crash randomly and we strongly suspect a problem with the memory.

This dll is actually developed in Visual Studio 2010 using the C language 

The fact is that i'm trying to use the <crtdbg.h> librairy to use the methode _CrtDumpMemoryLeaks() to discover some memory leaks , but the Visual Studio project get me an error :  " error LNK2019 lnk2019 unresolved external symbol in _free_dbg".

This error happen when i try to "#include <crtdbg.h>"

I already tried to include this librairy in an empty project and it worked perfectly .

 

Have had anybody experience with this topic?

 

Aymeric

1 REPLY 1
fpradier-2
5-Regular Member
(To:AymericJST)

To use it you have to link with either LIBCD.LIB, LIBCMTD.LIB or MSVCRTD.LIB

Please see MSDN _free_dbg

 

Top Tags