• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

Querying allocation on heap

How can I retrieve the size of memory allocated on the heap given the pointer to the memory segment?
0
mco
Asked:
mco
1 Solution
 
jkrCommented:
There's no standard mechanism for that. You'll have to track your allocations/deallocations yourself in order to be able to obtain that kind of information.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now