Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 21:29:42 +0000



Issue on Multiple Copies of Studies Using PersistentPointer for Storing Objects

View Count: 509

[2018-08-07 19:21:29]
BlakJak - Posts: 108
Hi,

I am using GetPersistentPointer() to store and retrieve a copy of my object from call to call and it is working fine on one chart. As soon as I add the same study to another chart, both studies stop working properly.

How is memory handled in the case of multiple copies of a study running concurrently? Is it safe to use two copies and GetPeristentPointer()?

Rgds,
David
[2018-08-07 20:31:00]
Sierra Chart Engineering - Posts: 104368
The data held by GetPersistentPointer is completely separate for each individual study instance. So if you have a problem you have to check your code. Something is wrong on your side. If you are also allocating your own memory you must have sc.FreeDLL = 0
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account