Login Page - Create Account

Support Board


Date/Time: Sat, 05 Jul 2025 04:15:23 +0000



Post From: >255 simultaneous open charts breaks the Windows Operating System

[2018-05-20 17:08:26]
ErikT - Posts: 121
For starters: Look, I already got the message that you find my support requests annoying. If you do not intend to support this, please just say so and I'll make my workaround permanent. Thanks.

Background: My primary SC instance normally has 5 simultaneously open CBs with many charts. Previously the total # of charts was around 220. But after adding new charts last week, my 5 primary CBs contain 111, 81, 42, 8, and 31 charts respectively, bringing the total desired number of simultaneously loaded charts to 273.

Problem: Opening the last of my 5 CBs, more than half of the charts get lost/discarded without any error message being displayed. The book of 31 charts only comes up showing 12 charts, and the rest are lost. If I re-save the chartbook, they are lost completely and I have to restore the .CHT from backup. HOWEVER, if I load this CB standalone, it loads fine. The problem only occurs when I load the final CB after first loading the other 4 large CBs.

Observation: After SC loses most of the last CB, the total number of charts actually loaded is 254. Conspicuously close to 255/256 limit of an 8-bit integer.

Not specific to any one .CHT: If I load the CBs in a different order, I get similar results but it is always the last CB being loaded where the charts are lost. Based on this I conclude there is nothing wrong with the .CHT files themselves. The problem seems to be that SC breaks in some way when loading a .CHT that brings the TOTAL number of loaded charts across all CBs past some threshold. It may be coincidence, but the threshold appears to be at or near 255 total charts loaded.

System Configuration: i9-7940X 14-core CPU with 128GB RAM, Win10 1803 (latest), everything up to date. The problem is not lack of system resources.

SC Version: This problem first arose in the prior version. I upgraded to latest version in case that was part of the problem, but the symptoms are identical on latest version.

Why do I have so many charts? Most of the charts I actually look at contain numerous Overlay(single line) studies. The only way I know in SC to show 15 different price series on the same chart is to have 15 different charts for all the source series, and reference them with overlay studies. Most of the charts in the big CBs are used to supply data series to other charts thru the Overlay study.

To work around this, I'm breaking from my desired configuration and using two instances to load these 5 large CBs rather than just 1. This is less desirable because I have lots of monitors and from a single instance each time I change active CB, it automatically changes the detached charts displayed on a half-dozen different monitors. Would be nice to find a way to keep growing past 300 loaded charts in a single SC instance.

Thanks,
Erik