I use FastMM. I have a Pointer type variable that points to the allocated memory. Is it possible to read how much memory is allocated at the address of this Pointer?

Comments

  1. No, it will allocate it with the allocator that handles 96-104 byte blocks. See SmallBlockTypes array in FastMM4.pas.

    ReplyDelete
  2. Remember how big it is, or use a dynamic array which carries that knowledge

    ReplyDelete
  3. Next question: For what do you need the size?

    ReplyDelete

Post a Comment