# 5.1 Error when creating new C++ template project

**URL:** <https://forums.unrealengine.com/t/5-1-error-when-creating-new-c-template-project/691932>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, CPP, question\
**Created:** [November 16, 2022, 11:20am UTC](https://forums.unrealengine.com/t/5-1-error-when-creating-new-c-template-project/691932 "2022-11-16T11:20:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Onoa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Onoa](https://forums.unrealengine.com/u/Onoa)\
**Post date:** [November 17, 2022, 1:58am UTC](https://forums.unrealengine.com/t/5-1-error-when-creating-new-c-template-project/691932/3 "2022-11-17T01:58:22Z")

</div>

Having the same issue. I posted the issue in the 5.1 Release Announcement thread, but no one has replied so far. Glad to have confirmation that I’m not the only one having this issue.

> [@Unreal Engine 5.1 Released](https://forums.unrealengine.com/t/unreal-engine-5-1-released/691237/29):
>
> I’m getting the following error when trying to generate project files for my 5.0.3 C++ project: Binding IntelliSense data… 100% Writing project files… Writing project files… 0% Unhandled exception: System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown. at System.GC.AllocateNewArray(IntPtr typeHandle, Int32 length, GC\_ALLOC\_FLAGS flags) at System.GC.g\_\_AllocateNewUninitializedArray|66\_0[T](Int32 length, Boolean pinned) at System.Text.StringBuilde…

I also created a thread on the subject.

> [@Is anyone able to create a new C++ project or generate C++ project files with 5.1?](https://forums.unrealengine.com/t/is-anyone-able-to-create-a-new-c-project-or-generate-c-project-files-with-5-1/692339):
>
> I’m getting the following error when trying to generate project files for my 5.0.3 C++ project: Binding IntelliSense data… 100% Writing project files… Writing project files… 0% Unhandled exception: System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown. at System.GC.AllocateNewArray(IntPtr typeHandle, Int32 length, GC\_ALLOC\_FLAGS flags) at System.GC.g\_\_AllocateNewUninitializedArray|66\_0[T](Int32 length, Boolean pinned) at System.Text.StringBuilde…

---

_[View the full topic](https://forums.unrealengine.com/t/5-1-error-when-creating-new-c-template-project/691932)._
