Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 03:20:05 +0000



Sierra Chart Crashing after an Upgrade

View Count: 508

[2020-04-02 21:39:34]
User272786 - Posts: 13
After a version upgrade, following runtime error started happening (around a Custom Study code):

"...Run-Time Check Failure #2 - Stack around the variable 'tradeStats2' was corrupted"

following is the related code section:
n_ACSIL::s_TradeStatistics tradeStats2;
if (sc.GetTradeStatisticsForSymbolV2(n_ACSIL::STATS_TYPE_DAILY_ALL_TRADES, tradeStats2))
  {
    sp.EquityPeak = tradeStats2.EquityPeak;
    sp.EquityValley = tradeStats2.EquityValley;
  }

How can I get rid of this runtime error?...currently I am running this Custom Study without this section of code.
Also I have done another version upgrade recently, still this run time error happens, if this section of code is used.
Thanks
Date Time Of Last Edit: 2020-04-02 21:42:48
imageSCRuntimeError.jpg / V - Attached On 2020-04-02 21:30:07 UTC - Size: 7.5 KB - 162 views
[2020-04-02 21:57:29]
Sierra Chart Engineering - Posts: 104368
We cannot reproduce that. How are you building the custom study. Are you using the Remote Build?

It is possible the problem is somewhere else and the debugger is not identifying the location correctly.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-04-02 23:34:34]
User272786 - Posts: 13
Thanks for the prompt reply.
No, I am not using Remote Build...what is the significance of Remote Building for this issue? I can try Remote Building if required.
It is possible the problem is somewhere else and the debugger is not identifying the location correctly.
Can you please elaborate a bit on this, thanks

Also please note that this piece of code was working fine for months, until a SC version upgrade few weeks back.
Thanks
Date Time Of Last Edit: 2020-04-02 23:36:16
[2020-04-03 01:16:29]
Sierra Chart Engineering - Posts: 104368
We think the problem is you are using an older SierraChart.h file. Make sure when you are building the DLL, that your project is referencing the very latest SierraChart.h file with the version of Sierra Chart you are running.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-04-03 03:26:40]
User272786 - Posts: 13
Fantastic! Actually that was the issue, eventhough I had the newest SC version, my DLL building was using an older version of SierraChart.h
I appreciate the help provided.
Thanks again!
Date Time Of Last Edit: 2020-04-03 03:28:20

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

Login

Login Page - Create Account