Mem.cpp error

General Discussions about new beta versions of Capitalism Lab
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Mem.cpp error

Post 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?
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10435
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 226 times

Re: Mem.cpp error

Post by David »

Could you please send me your script file for checking?
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Mem.cpp error

Post 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
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10435
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 226 times

Re: Mem.cpp error

Post 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.
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Mem.cpp error

Post 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.
Attachments
jol_test.zip
(708 Bytes) Downloaded 121 times
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10435
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 226 times

Re: Mem.cpp error

Post 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
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Mem.cpp error

Post by Black »

I uninstalled my cap lab post-release beta, then installed again from your link, still gettintg the error.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10435
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 226 times

Re: Mem.cpp error

Post 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.
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Mem.cpp error

Post by Black »

Still the same error.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10435
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 226 times

Re: Mem.cpp error

Post 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.
Post Reply