In this chapter, we are going to cover the following topics:
Unmanaged memory – using
malloc()
/free()
Unmanaged memory – using
new
/delete
Managed memory – using
NewObject< >
andConstructObject< >
Managed memory – deallocating memory
Managed memory – smart pointers (
TSharedPtr
,TWeakPtr
,TAutoPtr
) to track an objectUsing
TScopedPointer
to track an objectUnreal's garbage collection system and
UPROPERTY()
Forcing garbage collection
Breakpoints and stepping through code
Finding bugs and using call stacks
Using the Profiler to identify hot spots