My program eventually consumes all ram and crashes... looking through the code, I can't find anything that stands out that would do this.
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
相关文章
- How to show location of errors, references to memb
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- How to track MongoDB requests from a console appli
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
Could you modify the code to use the debug version of
malloc
andfree
? If yes, check _malloc_dbg and _free_dbg.(You could write own
new
anddelete
operators based on these functions.)As I remember VS 6.0 has no
_realloc_dbg
.You can try BoundsChecker (now DevPartner): http://www.microfocus.com/products/micro-focus-developer/devpartner/index.aspx
You will be able to see memory leaks, interface leaks and other problems in your code.
Depending on the type of leak you can use umdh, or debugdiag as simple tools, otherwise I would recommend windbg. All of these are free and are part of debugging tools for windows, you can Google for tutorials on all these tools. The command for automatic leak finding in windbg is !heap -l.