Page 1 of 2

Mem.cpp error

Posted: Tue Feb 11, 2014 11:56 pm
by Black
I just got this error:

Image


I was just creating new script game (10 cities, 30 competitors), and then quitting to main menu. I repeated it around 20 times. Seems like there is memory leak somewhere?

Re: Mem.cpp error

Posted: Wed Feb 12, 2014 3:50 am
by David
Could you please send me your script file for checking?

Re: Mem.cpp error

Posted: Wed Feb 12, 2014 8:42 am
by Black
I tried it again, got error after 10 tries.

Script file in attachment.

Hmm, the extension txt is not allowed, i'll post it below:



[HEADER]
Title=Jol Hard
Description=Jol omg.

[ENVIRONMENT]
Number of Cities=10
Your Start-up Capital=Moderate
Random Events=Never
Game Starting Year=1990
Retail Store Type=Many
Technology Disruption=On
Stock Market=Yes
Alternative Stock Sim=Yes
Macro Economy Realism=High
Inflation=Off

[SPECIAL RULES]
Tech Cost Modifier=1000
CEO Salary Modifier=50
COO Salary Modifier=50
CTO Salary Modifier=50
CMO Salary Modifier=50

[CITIES]
City=Shanghai
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Warsaw
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Washington DC
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Moscow
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Istanbul
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Hong Kong
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Chicago
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Athens
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=San Francisco
Consumer Goods Seaports=4
Industrial Goods Seaports=4

City=Paris
Consumer Goods Seaports=4
Industrial Goods Seaports=4

[COMPETITORS]
Number of Competitors=30
Competitor Start-up Capital=High
Competitor Aggressiveness=Very High
Competitor Expertise Level=Moderate
Show Competitor Trade Secrets=Yes
AI Friendly Merger=Yes
Competence of Local Competitors=High

[IMPORTS]
Constant Import Supply=No
Import Quality=Moderate

[PLAYER EXPERTISE]
Product Expertise=Snacks, 100

Re: Mem.cpp error

Posted: Wed Feb 12, 2014 9:45 am
by David
I loaded your script file. The game ran without any problems.

1) Could you let me know which game version you are using? You can see the game version number at the top-right corner of the main menu.

2) If you start the game without using a script, does the error still occur?

3) There is also a possibility that there may be some hidden characters in your script file that needs to the error. You may ZIP the script text file and send it to me as an attachment.

Re: Mem.cpp error

Posted: Wed Feb 12, 2014 3:30 pm
by Black
David wrote: 1) Could you let me know which game version you are using? You can see the game version number at the top-right corner of the main menu.

I was using 2.4.03 Beta. Now i downloaded 2.4.03C and i'm also getting this error.
David wrote: 2) If you start the game without using a script, does the error still occur?
Yes, the same error after 14 game restarts.
David wrote: 3) There is also a possibility that there may be some hidden characters in your script file that needs to the error. You may ZIP the script text file and send it to me as an attachment.
Script in attachment.

Re: Mem.cpp error

Posted: Wed Feb 12, 2014 5:14 pm
by David
Please try installing the 2.4.03C full version and see if it will resolve the problem. Download link: http://www.capitalismlab.com/forum/view ... 1753#p7743

Re: Mem.cpp error

Posted: Wed Feb 12, 2014 5:32 pm
by Black
I uninstalled my cap lab post-release beta, then installed again from your link, still gettintg the error.

Re: Mem.cpp error

Posted: Thu Feb 13, 2014 4:45 am
by David
In your My Documents folder, you can find "My Games" folder and "Capitalism Lab Post-Release Beta" subfolder, please delete the file CONFIG.DAT, and see if it will resolve the problem.

Re: Mem.cpp error

Posted: Thu Feb 13, 2014 8:48 am
by Black
Still the same error.

Re: Mem.cpp error

Posted: Thu Feb 13, 2014 9:08 am
by David
Hmm.. I tested your script file and it loaded fine. And I asked the dev team about the mem error and was told that it was not due to memory leak. It was because the game tried to allocate a memory block that is abnormally high, and that may be due to some strange data in some files.

Did you only get this error after updating to version 2.4.03?

Did you run any of the earlier version 2.4.00 to 2.4.02 that worked on your computer?

p.s. I have sent you a private forum message which provides you with a new testing CapLab EXE file.