Dynamic memory allocation issue
Robert S. Grimes
rsg at alum.mit.edu
Thu Jan 22 13:38:15 UTC 2009
Joel Sherrill wrote:
> Torsten Landschoff wrote:
>> Hi Robert,
>> Robert S. Grimes wrote:
>>> Of course! And I know C++ better than that! But you know how it is -
>>> sometimes you can't see the trees for all the forest!
>> As another developer told me a while ago: Only he who does not work does
>> not make stupid mistakes.
>> For example, I made another by replying in private mail instead of
>> following up on the list. :(
>> Sorry, Joel, for wasting your time...
> No problem. I should have spotted that also.
> I was wondering if it would have been helpful to have
> a routine that you could pass in an address allocated
> from a heap and return it's allocated size. All the pieces
> are there in the score (I think).
I don't know if such a thing would be useful for an actual design, but
it certainly could be useful for debugging issues such as this, and
certainly more complicated situations. So if all the pieces are there...
More information about the users