Support Board
Date/Time: Thu, 27 Feb 2025 06:09:32 +0000
Post From: Sierra Chart crashes when rebuilding study dll that uses sc.MaintainVolumeAtPriceData = 1
[2021-06-12 04:34:30] |
User719512 - Posts: 299 |
I believe I have a repro for this crash that I discovered when building a study that uses sc.MaintainVolumeAtPriceData = 1; Repro steps: put scsf_VolumeAtPriceArrayTest() found in Studies8.cpp into its own file and give it a SCDLLName(). Use the build dialog and select and Remote Build this file. Add this study to a chart; I used a 1min ES chart. Save chartbook. -this works ok- Build the study again while leaving the chart open. Sierra unloads the dll and reloads it after building it. Hit INSERT to rebuild the chart. --> access violation, message in error log that study caused AV and Sierra is unstable. Studies that do not use sc.MaintainVolumeAtPriceData = 1; do not experience this behavior in my observations thus far. If you connect VS debugger to Sierra, you get the following information in the attached image. WORKAROUND1: close all chartbooks, Remote Build, reopen chartbook(s). WORKAROUND2: close all chartbooks, Release All Dlls, build locally, Allow Load DLLs, reopen chartbook(s). Thanks, Kory |
![]() |