I have tried to use FastMM_LogStateToFile which have a nested calls of BlockContentTypeToTextBuffer procedure in my code for explore some memory leaks, and have faced with situation, when in LPShortString after line
LPShortString := PShortString(PPointer(PByte(LClass) + vmtClassName)^);
was nil and further manipulation with it fails and prevent to write a memory usage dump.
I do not remember now, what the object leads to this misbehaviour, but when I added a code like
if LPShortString = nil then
Result := AppendTextToBuffer('<nil class name>', Length('<nil class name>'), Result, APTargetBufferEnd)
else
begin
it wrote one line about this nil, and all others data was very useful for my purposes.
I have tried to use
FastMM_LogStateToFilewhich have a nested calls ofBlockContentTypeToTextBufferprocedure in my code for explore some memory leaks, and have faced with situation, when inLPShortStringafter linewas
niland further manipulation with it fails and prevent to write a memory usage dump.I do not remember now, what the object leads to this misbehaviour, but when I added a code like
it wrote one line about this nil, and all others data was very useful for my purposes.