Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 20:31:19 +0000



Post From: Persistant nonbasic variable type

[2015-05-18 13:10:25]
Hendrixon - Posts: 130
I wrote a study that uses several "deque" collections. to make them persistent I made the deques global (yes with sc.FreeDLL = FALSE).
Study works fine when it's loaded once. I see now that to make the deques persistent per study instance I need to use "Dynamic Memory Allocation".

http://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#DynamicMemoryAllocations
I'm pretty stretched here with my programming abilities.
What should be changed in the code example above to use a deque there instead of an array?