# Crash at FlushQueuedReferences when using Timer

**URL:** <https://forums.unrealengine.com/t/crash-at-flushqueuedreferences-when-using-timer/2446162>\
**Category:** C++\
**Tags:** garbage-collector, timer, unreal-engine, crash, question, CPP\
**Created:** [April 8, 2025, 8:52am UTC](https://forums.unrealengine.com/t/crash-at-flushqueuedreferences-when-using-timer/2446162 "2025-04-08T08:52:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JulianPW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianPW](https://forums.unrealengine.com/u/JulianPW)\
**Post date:** [April 8, 2025, 11:51am UTC](https://forums.unrealengine.com/t/crash-at-flushqueuedreferences-when-using-timer/2446162/3 "2025-04-08T11:51:58Z")

</div>

Similar to here [Editor crashes on startup if uninitialized UPROPERTY object pointer is used in USTRUCT - #11 by anonymous\_user\_528b643b1](https://forums.unrealengine.com/t/editor-crashes-on-startup-if-uninitialized-uproperty-object-pointer-is-used-in-ustruct/385785/11) I had uninitialized AActors\* in a struct. Initializing them with nullptr now prevents the crash from happening, even when using `gc.CollectGarbageEveryFrame = 1`

---

_[View the full topic](https://forums.unrealengine.com/t/crash-at-flushqueuedreferences-when-using-timer/2446162)._
