   [dx c++]found memory leak
  How i found memory leak when i terminate my dx0 applicaion?I use vs 2008.Thanks   
  I appreciate English may not be your first language, but please HELP US TO HELP YOU [smile]What information do you have? What is telling you about the memory leak - Visual Studio or the DX debug runtimes?Have you tried to track it down? If so, what have you tried and what were the results?Have you performed any other analysis? What code have you changed recently, specifically what has changed in order to introduce this memory leak? Unfortunately, from what you've posted there is absolutely nothing I or anyone else can do for you. Memory leaks are often quite difficult to find and definitely something you should practice fixing if you're not used to them [wink]hthJack   ;  My (semi informed) guess is this:He has a DX application in VS2008, and when he closes the application the output log in VS screams about memory leaks. There is some setting to do this.He probably wants to know how to find these memory leaks that VS keeps whining about.   ;  sorry jollyjeffers I'm understand , my question is: what setting i must use for get memory leak output log in vs2008 when i close the application?thanks.   ;  Go to your DirectX Control panel and set Debugging to full, enable maximul validation...the whole program. You might want to enable "Break on memory leak" aswell.Also you will need to #define _DEBUG , but the exact syntax is a bit more complicated than that. Search the forums, I copy pasted that aswell.Good luck with your program, and remember: the best way to avoid memory leaks is, to compile often.   ;  Hi there. I think you can use this in winmain#if defined(DEBUG) | define(_DEBUG)  _CrtSetDbFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);#endif   ;  I recommend trying the visual leak detector (http://www.codeproject.com/KB/applications/visualleakdetector.aspx) from codeproject. It takes a little time to compile and set up, but it's quite sufficient for fixing simple leaks. I've tested it with VS 2008, and it works.   