Page 1 of 1
Allocation Error Mem.cpp Line 289
Posted: Wed Feb 08, 2023 5:57 pm
by SnowXy0
Re: Allocation Error Mem.cpp Line 289
Posted: Thu Feb 09, 2023 3:13 am
by David
We will investigate the problem.
Could you please provide us with your save game file and let us know the following?
1) Which version of Capitalism Lab you are using. You can see the version number on the top-right of the main menu.
2) The exact steps for triggering the bug with the save game
3) If your savegame uses a MOD, please let us know the name of the MOD and the MOD's version number.
You can find save game files of Capitalism Lab from the C:\Users\<your user name>\Documents\My Games\Capitalism Lab\SAVE
You may provide us with your save game file by posting it here on the forum as a ZIP file attachment or emailing the save game file to us at
info@enlight.com.
If your save game file is too large for attachment, you may check out this post about how to send us large files:
https://www.enlight.com/forum/viewtopic.php?f=13&t=2473
Re: Allocation Error Mem.cpp Line 289
Posted: Thu Feb 09, 2023 5:46 pm
by SnowXy0
Google Drive link for save
https://drive.google.com/file/d/1xOtKYQ ... share_link
1. Version 8.1.20 Release
2. Not sure, but it seems to happen a few minutes after loading
3. Real World V 11.5
Re: Allocation Error Mem.cpp Line 289
Posted: Fri Feb 10, 2023 4:31 am
by David
I can't download it. I've requested access to the file.
Re: Allocation Error Mem.cpp Line 289
Posted: Sat Feb 11, 2023 2:38 am
by SnowXy0
Re: Allocation Error Mem.cpp Line 289
Posted: Mon Feb 13, 2023 4:15 am
by David
The programmer has investigated the problem and found that it was caused by insufficient memory when the game needs to expand the size of the memory block that stores the products. Your save game has over 63000 products.
Here is a more detailed explanation by the programmer:
Since the game stores the products in an array of continuous data, when the array exceeds the current size, it will need to allocate a new memory block for the increased array size. In your case, the new memory block that it needs to allocate exceeds 100MB. When your computer does not have a memory block of 100MB available (the memory can be fragmented and does not have a single block of 100MB memory free even though the total memory free may exceeds 1GB), it will fail the memory allocation request and thus causing the error.
The programmer has done some tweaking on this and hopefully it will improve it a bit. You may download the latest patch v8.1.22 with this improvement from
viewtopic.php?f=7&t=8845
You may also consider adding more memory to your computer. Here is an article for your reference:
https://www.pcworld.com/article/422901/ ... ur-pc.html
Alternatively, you may start a new game next time with fewer cities, it will reduce the memory usage.