Login Page - Create Account

Support Board


Date/Time: Fri, 19 Sep 2025 11:41:20 +0000



Post From: ACSIL: Formated AddMessageToLog crash or freeze SC

[2019-02-28 13:56:53]
TedMar - Posts: 191
Sorry guys, but i not understand why Simple Message log format freezze SC?

Example

SCSFExport scsf_ManualLoopExample(SCStudyInterfaceRef sc)
{
  if (sc.SetDefaults)
  {

    sc.GraphName = "Manual Loop Example";
    sc.StudyDescription = "This is an example of using manual looping. It also demonstrates the new method to use analysis functions within a for loop.";
    sc.AutoLoop = 0; // 0 is the default: there is no auto-looping

    return;
  }
  
  SCString message;
message.Format("LastPrice f%", sc.BaseDataIn[SC_LAST][sc.ArraySize - 1]);
sc.AddMessageToLog(message, 1);

}

After add this study, SC freezze or crashed


v1880