0

for example, for Windows logical to use the Task Manager. But some people say that this utility does not show the exact value of the memory allocated by user. Then where can I see it?

I do not trust all classes, which calculates New\Delete. Smart pointers also is not are guaranteed result. I want to see the situation on the exit.

Thanks.

  • 1
    There are tools like valgrind which would help you analyze all memory allocation and free operations within your program at runtime. – Tuxdude Feb 27 '13 at 04:56
  • Windows (or at least the Microsoft compiler/library) include [leak tracing capabilities](http://msdn.microsoft.com/en-US/library/x98tx3cf.aspx). – Jerry Coffin Feb 27 '13 at 04:59
  • I search simple program like Task Manager, which can show me value of allocated memory. – Qewo Setner Feb 27 '13 at 05:00
  • Look at this thread for possible windows alternatives to valgrind: http://stackoverflow.com/questions/413477/is-there-a-good-valgrind-substitute-for-windows – Tuxdude Feb 27 '13 at 05:03

1 Answers1

1

I assume you expect answer for Windows platform.

Rational Purify and Insure++ are capable of this.

EDIT: Just saw a similar question.

Community
  • 1
  • 1
StarPinkER
  • 14,081
  • 7
  • 55
  • 81