# System.OutOfMemoryException exception

**URL:** <https://forums.unrealengine.com/t/system-outofmemoryexception-exception/806715>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [March 23, 2023, 7:10am UTC](https://forums.unrealengine.com/t/system-outofmemoryexception-exception/806715 "2023-03-23T07:10:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![allexs82](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/allexs82/32/585753_2.png) [@allexs82](https://forums.unrealengine.com/u/allexs82)\
**Post date:** [March 27, 2023, 12:52pm UTC](https://forums.unrealengine.com/t/system-outofmemoryexception-exception/806715/2 "2023-03-27T12:52:46Z")

</div>

That’s helps me

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

“To fix this, go to C:/Program Files/dotnet and cut the folder and paste it into C:/Programs (x86).  
If a dotnet folder already exists in x86, delete it and replace it with the one you previously cut.”

---

_[View the full topic](https://forums.unrealengine.com/t/system-outofmemoryexception-exception/806715)._
