Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 15:54:25 +0000



Post From: sc.DeleteACSChartDrawing Not working-on multiple instances of study different charts.

[2016-04-04 01:09:52]
enemyspy - Posts: 306
I generally assume that Bugs are a result of my own code. I was scratching my head for a very long time trying to figure out why it works flawlessly when only one instance of the study is running. I am wondering what within my code would make a difference when a second instance on a different chart is open.

The only thing I can think as if multiple instances are sharing the same Data structure. Data records for the Tool are being stored in this Data Structure.

struct Records{a;b;c;};
static std::vector<Records> DrawingRecords;
This Data structure is declared inside the study function, and all data is pushed into the structs within the vector. The way the above is declared would both instances be sharing a single data structure?