Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 14:13:19 +0000



vector unique among all instances of a study

View Count: 800

[2016-07-31 16:27:04]
@sstfrederik - Posts: 403
Hi, a beginner developer question ...

How can i make sure that a vector is not shared among all loaded instances of a study?

At first I used static std::vector, but this gives problems with more instances of a study using the same vector.

Than I used std::vector which work when sc.FreeDLL = 1; but not when set to 0;

I declared these outside the scsf_

std::vector <SCString> f_DataLines;
std::vector <std::vector <char*> > f_DateValues;

Thanks
[2016-07-31 18:06:59]
@sstfrederik - Posts: 403
disregard.

placing the code inside scsf_ works fine.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account