[FIXED] System.OutOfMemoryException
Posted: Tue Nov 17, 2020 10:56 am
Hi
I'm playing a very large scenario and i get often System.OutOfMemoryException messages in the exeption.log
I have 32GB Memory and Ryzen 9 3900X and Command.exe does not use more than about 2GB (Max is 2750MB i measured)
11/17/2020 2:50:54 PM -- B1147.14 -- Exception of type 'System.OutOfMemoryException' was thrown.
Exception: Exception of type 'System.OutOfMemoryException' was thrown.
Stack Trace: at System.Text.StringBuilder.ExpandByABlock(Int32 minBlockCharCount)
at System.Text.StringBuilder.Append(Char* value, Int32 valueCount)
at System.Text.StringBuilder.AppendHelper(String value)
at System.Text.StringBuilder.Append(String value)
at Command_Core.FuelRec.()
at Command_Core.Ship.(XmlWriter& , HashSet`1& )
at Command_Core.Scenario.(XmlWriter )
at Command_Core.Scenario.(Stream , Boolean )
at Command_Core.GameGeneral.(Scenario )
at Command_Core.ScenContainer.()
at Command_Core.ScenContainer.(String theFileName, Boolean PreserveOriginalTimestamps)
at ..(Scenario theScen, Side theCurrentSide, String thePath, Boolean SBR, Boolean MarkAsCampaignCheckpoint)
Call Stack & Error details:
Error at 101005,
Error at 100761,
Error at 101022,
Error at 101087,
I'm playing a very large scenario and i get often System.OutOfMemoryException messages in the exeption.log
I have 32GB Memory and Ryzen 9 3900X and Command.exe does not use more than about 2GB (Max is 2750MB i measured)
11/17/2020 2:50:54 PM -- B1147.14 -- Exception of type 'System.OutOfMemoryException' was thrown.
Exception: Exception of type 'System.OutOfMemoryException' was thrown.
Stack Trace: at System.Text.StringBuilder.ExpandByABlock(Int32 minBlockCharCount)
at System.Text.StringBuilder.Append(Char* value, Int32 valueCount)
at System.Text.StringBuilder.AppendHelper(String value)
at System.Text.StringBuilder.Append(String value)
at Command_Core.FuelRec.()
at Command_Core.Ship.(XmlWriter& , HashSet`1& )
at Command_Core.Scenario.(XmlWriter )
at Command_Core.Scenario.(Stream , Boolean )
at Command_Core.GameGeneral.(Scenario )
at Command_Core.ScenContainer.()
at Command_Core.ScenContainer.(String theFileName, Boolean PreserveOriginalTimestamps)
at ..(Scenario theScen, Side theCurrentSide, String thePath, Boolean SBR, Boolean MarkAsCampaignCheckpoint)
Call Stack & Error details:
Error at 101005,
Error at 100761,
Error at 101022,
Error at 101087,