FMallocDoubleFreeFinder

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/MallocDoubleFreeFinder.h

Include

#include "HAL/MallocDoubleFreeFinder.h"

Syntax

class FMallocDoubleFreeFinder : public FMallocCallstackHandler

Variables

Name Description

Protected variable

TMap< const voi...

 

TrackedCurrentAllocations

Protected variable

TMap< const voi...

 

TrackedFreeAllocations

Constructors

Name Description

Public function

FMallocDoubleFreeFinder

(
    FMalloc* InMalloc
)

Functions

Name Description

Public function Static

FMalloc *...

 

OverrideIfEnabled

(
    FMalloc* InUsedAlloc
)

Public function

void

 

TrackSpecial

(
    void* Ptr
)

If you get an allocation/memory error outside of the allocator you can call this directly It will dump a callstack of the last allocator free most likely to have caused the problem to the log, if you have symbols loaded Might be useful to pass an access violation ptr to this!

Overridden from FMallocCallstackHandler

Name Description

Public function Virtual

void

 

Init()

Protected function Virtual

void

 

TrackFree

(
    void* Ptr,
    uint32 OldSize,
    int32 CallStackIndex
)

Protected function Virtual

void

 

TrackMalloc

(
    void* Ptr,
    uint32 Size,
    int32 CallStackIndex
)

Overridden from FExec

Name Description

Public function Virtual

bool

 

Exec

(
    UWorld* InWorld,
    const TCHAR* Cmd,
    FOutputDevice& Ar
)

Handles any commands passed in on the command line

Classes

Name

Description

Protected struct

TrackedAllocationData

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss