Login Page - Create Account

Support Board


Date/Time: Tue, 01 Jul 2025 03:28:38 +0000



Post From: read access violation and heap corruption using SetStudyPersistentIntFromChart()

[2017-07-05 22:35:53]
DabbaDo - Posts: 148
Perhaps I'm doing something wrong here, but I haven't found examples for using SetStudyPersistentIntFromChart() and I'm stuck.
Attached is a simple chartbook with two studies, one "driving" the other.
It works for a few times, but repeatedly changing the "Master" length in the study input dialog and hitting "Apply" eventually gives me a crash in the debugger, sometimes a heap crash and sometimes a read access violation.

Cheers,
Dale

V1580
attachmentSetStudyPersistentDemo.cpp - Attached On 2017-07-05 22:33:58 UTC - Size: 2.13 KB - 362 views
attachmentSetStudyPersistentDemoAvg.cpp - Attached On 2017-07-05 22:34:19 UTC - Size: 2.41 KB - 304 views
attachmentDebug.cht - Attached On 2017-07-05 22:34:31 UTC - Size: 39.74 KB - 396 views