Login Page - Create Account

Support Board


Date/Time: Fri, 20 Sep 2024 00:10:56 +0000



Post From: Question Regarding Autoloop = True & Data Retention STD::List ?

[2013-07-17 13:53:26]
User45685 - Posts: 36
I have a question regarding autoloop and Data retention. My Study needs to save information between function calls, the main part of the code is within the

SCDLLName("My Project Version 0.3B");

SCSFExport scsf_Projectv0.3b_modified(SCStudyInterfaceRef sc) {

}

part.

But above that i have several class and member function definitions which get called to for every functioncall/iteration of the loop that is run. I have autoloop set to 1 so that it repeats by itself without me having to write the loop myself.

Now within my code i need to store values and information within an std::list.
If i put that container within the above mentioned part of the "main" code then from what i understand there will be no data retention between function calls.

But if i place that std::list before the above mentioned code will data be retained or will it also be deleted and newly written with every function call?

The reason why I am asking is that i would like to avoid using http://www.sierrachart.com/index.php?l=doc/doc_ACSILProgrammingConcepts.html#DynamicMemoryAllocations the dynamic memory.

Kind regards