Memory Management of local UObject * pointer
Since we can't use TSharedPtr family with UObject pointers and we can't use UPROPERTY with local pointer variables I want to understand what to do in the local UObject * pointer case. The comments in the code explains what puzzles me.
Your help is greatly appreciated.
asked Oct 30 '17 at 05:55 PM in C++ Programming
Hi. To be sure that your local object is never GC'ed while calling engine functions that can trigger GC you can use FGCObjectScopeGuard:
answered Nov 01 '17 at 02:01 AM
have you looked at this wiki: https://wiki.unrealengine.com/Garbage_Collection_%26_Dynamic_Memory_Allocation
answered Oct 30 '17 at 06:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here