Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 07:47:56 +0000



[Programming Help] - Debuging in SC

View Count: 707

[2020-04-18 15:45:41]
b3cker - Posts: 34
Hello,

I am using SC version 2086.
I have build my study locally and added study to chart, I can see the study. But now I would like to debug. As per your instructions, I built with VC++ for debug. As soon as I add my study is added to the chart, SC immediately closes, with no error message.
I wanted to create a project with MVS, the 'old fashioned way', but the page describing how to build MVS project for SC is missing!.

Is there any other way to debug? Would be nice wouldn't it?
[2020-04-18 16:38:58]
bradh - Posts: 854
I assume you did "Install Visual C++ Compiler" from the Build menu. If not, then do that first.

You will also need to install Visual Studio (https://visualstudio.microsoft.com/) to do debugging with Visual C++. The free Community Edition is fine. I don't know for sure, but the fact that the DLL crashed Sierra Chart may have something to do with the Compiler install or the fact that Visual Studio wasn't installed.

After doing that follow the instructions here: Step-By-Step ACSIL Debugging

If Sierra still crashes when adding the study compiled with VS, and not with Remote Build, then my thinking is there is something else going on. One way to check for more information would be to Attach Visual Studio to SierraChart_64.exe before loading the study. Then if it crashes when it is added to the chart, you may get an error message in Visual Studio.

Good luck!
[2020-04-19 08:50:20]
User365411 - Posts: 173
Take a look at message #8 in this thread, maybe it can help you
Update documentation to support latest version of Visual Studio
[2020-04-19 17:48:18]
User701453 - Posts: 176
If you ever get the debugging to work with VS,you can place your breaks to check values and such.But VS advanced feature of edit and continue does not work.
Instead of SC telling its customers to use VS which they like to call "Microsoft Junk".
They should instead create their own IDE like the more advanced trading platforms have(TradeStation,NinjaTrader,MultiCharts,and even MT4).

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

Login

Login Page - Create Account