Support Board
Date/Time: Tue, 22 Apr 2025 00:24:39 +0000
Post From: How to access to the SCStudyInterfaceRef object from inside a thread?
[2025-02-18 16:27:37] |
Sierra_Chart Engineering - Posts: 19290 |
This is not safe: but I would like to get access to it from a thread that is running on a timed interval.
On the thread that calls the study function, you need to take a copy of the data, you want from SCStudyInterfaceRef sc and place it into your own allocated memory. And then, access that allocated memory, on the separate thread. And then there must be a critical section to protect that block of memory. We recommend using an operating system critical section. There is no safe way to do this other than explained. Otherwise Sierra Chart will become unstable. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |