Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 04:08:25 +0000



[Programming Help] - Debug with Free Mode crashes Sierra Chart

View Count: 1063

[2019-08-16 21:01:15]
bradh - Posts: 853
I have temporarily started using Free mode while I move between brokers. I am finding that building with Visual C++ Debug causes Sierra to crash any time I try to use the study. This happens with new code and old code that worked fine before. Is there anything about Free Mode that restricts the use of the Visual Studio Debug builds? How do I go about troubleshooting this if the application keeps crashing?
[2019-08-16 21:22:08]
Sierra Chart Engineering - Posts: 104368
Your conclusion cannot be accurate here. It is the custom study which must be causing the problem.

Is there anything about Free Mode that restricts the use of the Visual Studio Debug builds?
No.

Attach the DLL and we will see if it is anything going wrong within Sierra Chart itself.
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
Date Time Of Last Edit: 2019-08-16 21:22:19
[2019-08-17 10:52:54]
bradh - Posts: 853
Attaching the DLL. I get some crash dumps when compiled and run on a Windows 7 PC. This was compiled with Debug on Windows 10. Sierra Chart version 1941.
Private File
[2019-08-20 13:14:01]
bradh - Posts: 853
Any update on this?

It looks like I will need to continue to use the Sierra Chart Direct Data feed, as my new broker does not support Forex. I am attaching the Release mode DLL so you can see that it loads OK.

Thanks,
Brad
Private File
Attachment Deleted.
[2019-08-22 06:16:37]
Sierra Chart Engineering - Posts: 104368
We did not get any exception but we did encounter this message:
Chart: GCZ19 Daily #1 | Study: Contract Calculator | You are not allowed to use this study | 2019-08-22 00:15:48.667 *

We are testing with the Sierra Chart username: test2019_1
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
Date Time Of Last Edit: 2019-08-22 06:16:47
[2019-08-22 13:24:24]
bradh - Posts: 853
I have authorized test2019_1 to use the DLL.

Thanks,
Brad
[2019-08-22 17:49:40]
ILIM KIRGIZ - Posts: 187
Dear Support,
We stopped trading due to this error. Could you please let us know what to do to proceed with the development of it asap?
Thanks.
[2019-08-22 18:31:18]
Sierra Chart Engineering - Posts: 104368
We see no exceptions at all when using the DLL attached in post #3.

In any case, if you need your Sierra Chart account activated for development just contact us here about that:
https://www.sierrachart.com/usercp.php?page=SupportTickets
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
Date Time Of Last Edit: 2019-08-22 18:31:35
[2019-08-22 18:57:34]
bradh - Posts: 853
Odd that you don't see it.

This time I recompiled on Windows 7 in debug mode and got these error messages in Visual Studio 2019 when asked to debug:

'SierraChart_64.exe' (Win32): Loaded 'C:\SierraChart\SierraChartStudies_64.dll'.
'SierraChart_64.exe' (Win32): Loaded 'C:\SierraChart\Data\Contracts_One_64.dll'. Symbols loaded.
'SierraChart_64.exe' (Win32): Loaded 'C:\SierraChart\Data\Study_Summary_Window_Manager_64.dll'. Module was built without symbols.
The thread 0x1ae8 has exited with code 0 (0x0).
SierraChart_64.exe has triggered a breakpoint.

Seems strange that it shows SierraChart_64.exe as a Win32 applications.
[2019-08-22 19:30:22]
bradh - Posts: 853
It crashes when Added to any chart. These two dumps came after adding the attached DLL to an empty 1m chart of AUDCAD and clicking Apply.
Private File
Private File
Private File
[2019-08-22 22:29:52]
Sierra Chart Engineering - Posts: 104368
We still encountered no exceptions with a blank chart using that attached DLL in post #10.

You should check your own code for any potential problems. There could be some memory corruption occurring which would be manifesting random behavior.
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
[2019-08-24 11:25:13]
bradh - Posts: 853
There could be some memory corruption occurring which would be manifesting random behavior.

Any idea why this would only occur when building with "Build with Visual C++ -Debug" and not with "Build with Visual C++ -Release"?

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

Login

Login Page - Create Account