-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
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
beginit wrote one line about this nil, and all others data was very useful for my purposes.
Metadata
Metadata
Assignees
Labels
No labels