DB is not updated until close

Questions about MultiCharts .NET and user contributed studies.
wzero
Posts: 142
Joined: 10 Jul 2014
Has thanked: 12 times
Been thanked: 10 times

DB is not updated until close

Postby wzero » 20 Oct 2014

It seems DB is not updated until all Multicharts applications are closed, and the Multicharts application must be closed normally to save all DB data to harddisk. Otherwise all data includes historical and real time data recorded in this session still in memory are going to lose.

wzero
Posts: 142
Joined: 10 Jul 2014
Has thanked: 12 times
Been thanked: 10 times

Re: DB is not updated until close

Postby wzero » 20 Oct 2014

Maybe things are worse. If MC had crashed once, even all subsequent sessions are ok, it may think there is still an instance there and no data will save to harddisk.

User avatar
Henry MultiСharts
Posts: 8504
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2732 times

Re: DB is not updated until close

Postby Henry MultiСharts » 21 Oct 2014

wzero wrote:It seems DB is not updated until all Multicharts applications are closed, and the Multicharts application must be closed normally to save all DB data to harddisk. Otherwise all data includes historical and real time data recorded in this session still in memory are going to lose.
Once the data is received - it is stored in the buffer, then every 10 seconds it is released into the cache (by default in MC 9.0 64 bit the cache is in the RAM). The data is saved to the database files on hdd only upon closing all of the MultiCharts processes properly or if it has crashed - after recovering the data from the file cache (you need to enable it manually for MC 9.0).

If you want to get back to file cache you need to run the registry editor and go to the following path:
HKEY_CURRENT_USER\Software\TS Support\MultiCharts .NET64\Storage
By default UseFileCache = 0 (file cache is disabled).
Please set UseFileCache = 1 (enable file cache).

User avatar
Henry MultiСharts
Posts: 8504
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2732 times

Re: DB is not updated until close

Postby Henry MultiСharts » 21 Oct 2014

wzero wrote:Maybe things are worse. If MC had crashed once, even all subsequent sessions are ok, it may think there is still an instance there and no data will save to harddisk.
Please make sure that no processes with MultiCharts in description remain in the Task Manager, Processes (Win7) or Details (Win8) tab before starting the new session:MultiCharts Processes

wzero
Posts: 142
Joined: 10 Jul 2014
Has thanked: 12 times
Been thanked: 10 times

Re: DB is not updated until close

Postby wzero » 21 Oct 2014

Thanks a lot Henry. I will try the UseFileCache flag.


Return to “MultiCharts .NET”