Login Page - Create Account

Support Board

Date/Time: Wed, 23 Sep 2020 10:41:01 +0000

Post From: Custom Studies has issue on windows 10

[2019-10-12 11:19:10]
binaryduke - Posts: 249 | Ending Date: 2020-09-30
We have undertaken further testing on this issue and attach another chartbook from an affected user. Our studies make use of dynamic memory allocation for vectors of structs and make use of sc.SetPersistentPointer. We have verified all of our code for memory allocation and deallocation which occurs in line with Sierra Chart's examples. We have also verified that no out of bounds vector indexes are being referenced.

What has been consistent in all cases has been heap corruption and two of the three affected chartbooks make use of a large number of charts including several with short timeframes (1 minute), a large number of days loaded relative to the chart timeframe (60 days) and multiple custom indicators with relatively loose parameters. Several charts include Numbers Bars. Charts also include thin instruments with missing price levels.

During the latest testing we have noticed this error from the standard Numbers Bars study on one of the affected chartbooks (screen dump attached):
Chart: NQZ9-CME [C] 1 Min #10 | Study: Numbers Bars | Exception occurred while calling study function. | 2019-10-12 11:06:30.809 *

We also notice from sierrachart.h that there are revised functions for SetPersistentSCString and SetPersistentSCStringForChartStudy as from v1988. Given we make use of sc.SetPersistentPointer we are wondering whether any changes to dynamic memory allocation as from v1988 could be the cause of the heap corruption.
Date Time Of Last Edit: 2019-10-12 11:26:47
imageScreen Shot 2019-10-12 at 12.09.47.png / V - Attached On 2019-10-12 11:17:55 UTC - Size: 378.7 KB - 141 views
Private File