# Async task crash Editor

**URL:** <https://forums.unrealengine.com/t/async-task-crash-editor/436371>\
**Category:** C++\
**Tags:** multithreading, unreal-engine, question, CPP\
**Created:** [October 25, 2018, 9:57pm UTC](https://forums.unrealengine.com/t/async-task-crash-editor/436371 "2018-10-25T21:57:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enearle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@enearle](https://forums.unrealengine.com/u/enearle)\
**Post date:** [October 25, 2018, 9:57pm UTC](https://forums.unrealengine.com/t/async-task-crash-editor/436371/1 "2018-10-25T21:57:36Z")

</div>

Ok, so I think I understand things better now. Though, for some reason, I still can’t get my FAutoDeleteAsyncTask to run perpetually.

Is there a way to allocate TArray to the heap? **Edit: Nevermind it is on the heap by default**

> **[Optimizing TArray Usage for Performance](https://www.unrealengine.com/en-US/blog/optimizing-tarray-usage-for-performance)**
>
> In Unreal Engine, TArray is a dynamically sized array of typed elements. TArrays are very convenient to the programmer, and they are used \*a lot\* in our codebase. However there can be some subtle performance issues that can arise, and...

Or should I try to serialise as I go?
