Login Page - Create Account

Support Board


Date/Time: Sat, 01 Mar 2025 14:17:05 +0000



[Programming Help] - CPU exception when referencing

View Count: 457

[2021-10-07 04:37:27]
yellowandy - Posts: 20
Hello, I've been working on a custom study for a while now and it was working great. It's a bit complex, about 1k lines or so and for the final touches I needed to reference some overnight highs/lows. I pulled in the High/Low for Time Period extended Study and immediately noticed things started breaking. I am getting a "CPU Exception" in the message log when I try to access the values from my custom study. I'm simply using the GetStudyArraysFromChartUsingID call to refrence the data and can confirm that when I remove the study everything goes back to working. I even tried adding the study to another chart and referencing it that way but got the same cpu exception. No other valuable data is in the message log window. The actual study displays just fine but as soon as I try to reference it things break. The first chart is a renko chart and the second a range chart, not sure if that helps any. Thanks.
[2021-10-07 04:41:23]
yellowandy - Posts: 20
Also, even if I just put the study on a 10 min regular chart and try to reference it I get the same CPU error message.
[2021-10-07 06:29:38]
yellowandy - Posts: 20
Interesting in that I removed that study and ran into a similar exception when using Persistant variables. I am referencing 3 variables in my study and am using automatic looping (fast variables). Can reproduce everytime, wondering if that study also makes use of persistance variables and hence the issues I'm running into. Nothing else useful int he logs except for:

Warning: The Custom DLL study "GreenEmerald.scsf_SkeletonFunction" has just caused a CPU exception. | 2021-10-06 23:25:21.970 *
Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from the chart and restart Sierra Chart. | 2021-10-06 23:25:21.970 *

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account