Checking pointer information

As described in Dangling pointers, the Pointer Details window provides a lot of information about any pointer:

  • Whether the pointer is valid, not yet allocated or dangling.
  • What size of allocation is or was made.
  • The exact position and stack in the code that the pointer was allocated at, even if it is a dangling pointer that has since been freed.
  • The exact position and stack in the code that the pointer was deallocated again, if it is indeed a dangling pointer.

In particular, the image in Dangling pointers shows that it was allocated at hello.c:88. Clicking on this immediately jumps to that location in the source code viewer. It also indicates where this memory was deallocated.

Previous Next