# Have problem in creating c++ profile

**URL:** <https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, question\
**Created:** [November 16, 2022, 12:03pm UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954 "2022-11-16T12:03:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![oAde87o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oAde87o](https://forums.unrealengine.com/u/oAde87o)\
**Post date:** [November 16, 2022, 12:03pm UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/1 "2022-11-16T12:03:39Z")

</div>

I delete donnet document mistaten,and i redownload .Net for dotnet, and put it in request document folder,but it cant work report “System.outofMemoryException”  
ue5 version is 5.1.0  
visual studio 2022 version is 17.4.1  
.Net version is 6.0.403  
(I m not native speaker, maybe there are some spelling or grammer mistake,please ignore it:) )

---

<div class="post-metadata">

**Author:** ![oAde87o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oAde87o](https://forums.unrealengine.com/u/oAde87o)\
**Post date:** [November 16, 2022, 12:39pm UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/2 "2022-11-16T12:39:17Z")

</div>

Running D:/Epic/UE\_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/pre/我的项目/我的项目.uproject” -game -rocket -progress  
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/pre/???/???.uproject” -game -rocket -progress  
Log file: C:\Users\Rick Zheng\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

---

<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 19, 2022, 6:30am UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/3 "2022-11-19T06:30:41Z")

</div>

Did you figure it out? I have a similar issue and so far no luck fixing it.

> [@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…

---

<div class="post-metadata">

**Author:** ![danielkh300](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@danielkh300](https://forums.unrealengine.com/u/danielkh300)\
**Post date:** [November 21, 2022, 12:01am UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/4 "2022-11-21T00:01:32Z")

</div>

Same problem here. No where to find a solution for this.

---

<div class="post-metadata">

**Author:** ![Get\_DOVAH\_it](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/get_dovah_it/32/466948_2.png) [@Get\_DOVAH\_it](https://forums.unrealengine.com/u/Get_DOVAH_it)\
**Post date:** [November 21, 2022, 12:16am UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/5 "2022-11-21T00:16:26Z")

</div>

Greetings @oAde87o !

We welcome you to the Unreal Engine community! 🏅

Just so you’re aware, this topic has been moved from the **International** forum category to the **Programming & Scripting - C++** forum category. I do realize that English is not your native language, but we want to place your discussion in the best forum.

Just remember, when posting, please review the categories to ensure your topic is posted in the _most_ relevant space.

Wishing you the best of luck in your game dev journey!

'- Your Friendly Neighborhood Moderator 😃

---

<div class="post-metadata">

**Author:** ![Demonrras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Demonrras](https://forums.unrealengine.com/u/Demonrras)\
**Post date:** [November 24, 2022, 2:48pm UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/6 "2022-11-24T14:48:01Z")

</div>

I’m with the same problem here…already format meu pc, recent install and dont know how to fix…it’s a engine bug?

---

<div class="post-metadata">

**Author:** ![Demonrras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Demonrras](https://forums.unrealengine.com/u/Demonrras)\
**Post date:** [November 26, 2022, 5:38pm UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/7 "2022-11-26T17:38:03Z")

</div>

They update the page about setting the visual studio for unreal engine adding 5.1 with new specific requisites and now it’s working!!!🥳 👍🏻

---

<div class="post-metadata">

**Author:** ![Ciullss\_7Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ciullss_7games/32/903355_2.png) [@Ciullss\_7Games](https://forums.unrealengine.com/u/Ciullss_7Games)\
**Post date:** [December 2, 2022, 8:48pm UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/8 "2022-12-02T20:48:01Z")

</div>

I followed the installation step by step, but it still doesn’t work

---

<div class="post-metadata">

**Author:** ![problemniy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@problemniy](https://forums.unrealengine.com/u/problemniy)\
**Post date:** [December 25, 2022, 3:48pm UTC](https://forums.unrealengine.com/t/have-problem-in-creating-c-profile/691954/9 "2022-12-25T15:48:19Z")

</div>

Hi @oAde87o , @Ciullss_7Games ,

It might help you, please check:

> [@Help! I've been trying to create a C++ project in UE5 but every time I create a project it gives me this error message!](https://forums.unrealengine.com/t/help-ive-been-trying-to-create-a-c-project-in-ue5-but-every-time-i-create-a-project-it-gives-me-this-error-message/728343/3):
>
> Did you found answer?

You need to put …\Program Files\dotnet\dotnet.exe in the right order in the system environments.
