# Unable to create Unreal C++ project, no problem with blueprint

**URL:** <https://forums.unrealengine.com/t/unable-to-create-unreal-c-project-no-problem-with-blueprint/1123755>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, question\
**Created:** [April 19, 2023, 2:02am UTC](https://forums.unrealengine.com/t/unable-to-create-unreal-c-project-no-problem-with-blueprint/1123755 "2023-04-19T02:02:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanIncognito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IvanIncognito](https://forums.unrealengine.com/u/IvanIncognito)\
**Post date:** [April 19, 2023, 2:02am UTC](https://forums.unrealengine.com/t/unable-to-create-unreal-c-project-no-problem-with-blueprint/1123755/1 "2023-04-19T02:02:26Z")

</div>

Good afternoon. When I try to create a project with c++ I get an error:

```auto
Running C:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project="E:/Unreal Projects/MyTestProject/MyTestProject.uproject" -game -rocket -progress
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="E:/Unreal Projects/MyTestProject/MyTestProject.uproject" -game -rocket -progress
Log file: C:\Users\Anton\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Discovering modules, targets and source code for project...
Binding IntelliSense data...
Binding IntelliSense data... 100%
Writing project files...
Writing project files... 0%
Unhandled exception: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Text.StringBuilder.ToString()
   at UnrealBuildTool.VCProjectFile.WriteProjectFile(List`1 InPlatforms, List`1 InConfigurations, PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\VisualStudio\VCProject.cs:line 1381
   at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2812
   at UnrealBuildTool.VCProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\VisualStudio\VCProjectFileGenerator.cs:line 480
   at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 1176
   at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 233
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 648

```

The file C:\Users\Anton\AppData\Local\UnrealBuildTool\Log\_G PF.txt is not attached, it is very large, I posted it here [https://cloud.mail.ru/public/PN8n/nR9X4QhiY](https://cloud.mail.ru/public/PN8n/nR9X4QhiY)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [April 19, 2023, 10:02am UTC](https://forums.unrealengine.com/t/unable-to-create-unreal-c-project-no-problem-with-blueprint/1123755/2 "2023-04-19T10:02:52Z")

</div>

Hey @IvanIncognito!

Check out the solutions in this solved forum thread that has the same “Out of memory” error when attempting to create a C++ project:

> [@"System.OutOfMemoryException was thrown" adding c++ classes or generating visual studio project files ( UE 5.1 )](https://forums.unrealengine.com/t/system-outofmemoryexception-was-thrown-adding-c-classes-or-generating-visual-studio-project-files-ue-5-1/722613):
>
> When I try to add a c++ class or generate visual studio project files, I get this error message. On unreal engine 5.0.3 I don’t have this problem Binding IntelliSense data... 100% Writing project files... Writing project files... 33% Unhandled exception: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Text.StringBuilder.ToString() at UnrealBuildTool.VCProjectFile.WriteProjectFile(List`1 InPlatforms, List`1 InConfigurations, PlatformProje…

I hope the above contains the solution you need!
