Login Page - Create Account

Support Board


Date/Time: Fri, 01 Nov 2024 03:27:30 +0000



Post From: SC closes instantly when writing to the Chart with ACSIL Tools

[2021-08-14 10:15:57]
PS2004 - Posts: 47
It may be stack corruption, but I don't use any arrays when I format the text.
Here are a few examples how the text is formatted:

float Reached_Hundred_Percent, Reached_Stop_Percent;
if (Cases != 0) {
  Reached_Hundred_Percent = Reached_Hundred / Cases * 100;
  Reached_Stop_Percent = Reached_Stop / Cases * 100;
}
else Reached_Hundred_Percent = Reached_Stop_Percent = 0;

//Formatting SCString
Text.Format("Reached 100: %.2f", Reached_Hundred_Percent);
Text.AppendFormat("\nReached Stop First: %.2f", Reached_Stop_Percent);
//Writing out Input setting
Text.AppendFormat("\nWriteToFile active: %i", WriteToFile_input.GetYesNo());

Another thing may worth mentioning: I use an own header file to make coding more efficient, and I add Tools that way. The text is added the following way:

DrawOnScreenText(sc, LineNumber, OnScreenText_Vertical_input.GetInt(), OnScreenText_Horizontal_input.GetInt(),
sc.GraphRegion, OnScreenText_Customization_SG, Text);