Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 05:44:58 +0000



Post From: CPU Exception when Study is triggered.

[2024-09-09 17:29:05]
skalaydzhiyski - Posts: 58
Hi guys,

I am trying to write a study that takes in a date range of the form "2024-09-09 13:00:00/2024-09-09 13:30:00|2024-09-09 14:00:00/2024-09-09 14:30:00" -> parses it into multiple a vector of SCDateRange -> triggers a market replay for each date range.

My study is in main.cpp and my parsing function is in helpers.cpp. It is being triggered by the ON state of a control bar button. When I load the study everything is fine, but when I press the button and it triggers the study I get this error ->
"""
2024-09-09 18:20:50.846 | #5 MES-202409-CME-USD[M] 5 Min | Chart data loading complete.
2024-09-09 18:20:50.910 | Windows error code 0: The operation completed successfully.
2024-09-09 18:20:50.910 | Windows error code 122: The data area passed to a system call is too small. | Number times message added: 36
2024-09-09 18:20:50.919 | Windows error code 0: The operation completed successfully.
2024-09-09 18:20:50.919 | Windows error code 122: The data area passed to a system call is too small. | Number times message added: 36
2024-09-09 18:20:54.839 | Warning: The Custom DLL study "phitech-backtest.scsf_TriggerBacktest" has just caused a CPU exception. *
2024-09-09 18:20:54.839 | Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from the chart and restart Sierra Chart. *

"""

Can somebody please help me with this, I have been struggling for the whole day today :(
Pretty sure this is coming from my eventual misunderstanding of how persistentpointers work.

All the best,
Spas
Date Time Of Last Edit: 2024-09-09 17:30:42
attachmenthelpers.cpp - Attached On 2024-09-09 17:28:39 UTC - Size: 574 B - 76 views
attachmentmain.cpp - Attached On 2024-09-09 17:28:52 UTC - Size: 2.96 KB - 76 views