Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 21:40:19 +0000



Post From: Notice: Study Exceptions in New Versions and Code Efficiency

[2020-05-13 23:11:52]
User972768 - Posts: 166
Hello Support,

While we're on the topic of Persistent variables. Just wanted to confirm that referring to persistent variable int #1 is specific to each copy of the study.
For example, following code


int& VariableName = sc.GetPersistentIntFast(1);

will return references to two different memory addresses in two different copies of the study even on the same chart. Is it correct?

And to expand this question. If I have multiple studies in my DLL referring to persistent int variable as in code above, they all should refer to different memory regions, right?

PS Please do not forget to add information about new "Fast" methods at sc.GetPersistentInt()

Thanks
Date Time Of Last Edit: 2020-05-13 23:41:16