Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 08:56:55 +0000



Post From: Custom Studies has issue on windows 10

[2019-10-19 15:50:38]
binaryduke - Posts: 359
Thank you. We identified a small issue in how we construct the sc.Input array and in improving this code it appears that v1997 is much more sensitive to the 'quality' of the members within this array than prior releases. This seems to relate to handling of strings for the input names and this seems consistent with strange crashes when the studies are removed from the chart.

As we refactor our code that constructs the sc.Input array if we are able to provide you with an example of sc.Input array code that crashes in v1997 but is reliable in earlier versions we will share this.

As a starting point:
1. we have noticed that if the sc.Input[].DisplayOrder member is set to the same value as another input, this will cause heap corruption in v1997
2. v1997 appears strict in requiring sc.Input[].SetCustomInputIndex to be set after sc.Input[].SetCustomInputStrings() (which makes total sense if it is doing string/pointer manipulation) although prior to v1997 this did not seem to be an issue.