Support Board
Date/Time: Thu, 27 Feb 2025 06:16:31 +0000
CPU exception error when compiling
View Count: 1361
[2021-06-03 15:31:58] |
TriStar Trading - Posts: 148 |
About a week ago or so I started getting the error "caused a CPU exception" when compiling a custom study that is in use. I am using Notepad++ ver 7.8.2 and am on SC 2268. I tried compiling my oldest and most trustworthy study without code changes and I get the same error so I'm wondering if it's not anything in the code? Maybe somehwere in the development configuration? Have you heard from anyone else about this? I didn't see anything in the Support Board. Any help is appreciated. Thanks! Mike
|
[2021-06-03 16:46:06] |
Sierra_Chart Engineering - Posts: 18578 |
The cause of this would have to be a problem within the code itself. So you need to track down this problem. Although it could be something as simple as calling a function which is no longer supported. But that would generate a compiler error though because the function name would change indicating it is not supported. 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-11 04:06:35] |
TriStar Trading - Posts: 148 |
I was thinking code problems also but it happens on any cpp I attempt to compile when the study is in use. If I do get the error I only have to remove the study, hit apply, and re-add the study to get the error to go away. Notepad++ ver 7.8.2 and am now on SC 2270. No one else has said anything huh? Then it must just be me, but it happens on ALL of my cpp's with the study in use. Evenn ones I have been using for years. Anyone? Any ideas? Thanks, Mike
|
[2021-06-11 17:12:46] |
John - SC Support - Posts: 38222 |
You have us a bit confused. Does this problem only occur when you have a study on the chart and then you recompile it? So it's only when the recompilation is complete?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-11 17:47:50] |
TriStar Trading - Posts: 148 |
Yes sir. Exactly. If you can't duplicate the error then I would know for sure it was somewhere on my end. Attached is a very simple cpp I have been testing with.
Date Time Of Last Edit: 2021-06-11 18:02:10
|
![]() |
[2021-06-11 19:46:10] |
John - SC Support - Posts: 38222 |
Refer to the following information related to Releasing DLLs: Advanced Custom Study Interface and Language (ACSIL): Modifying Advanced Custom Study Code For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-11 21:23:58] |
TriStar Trading - Posts: 148 |
Is this new? I've never had to do that before? THanks tons!
|
[2021-06-11 21:27:51] |
John - SC Support - Posts: 38222 |
It's been that way for at least 3 years that I know of. If you have been compiling with the Remote Build and then changed to a local build, then would explain it. The system automatically releases the DLLs when you use the Remote Build. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-11 21:28:34] |
TriStar Trading - Posts: 148 |
No, I use the remote build. I remember back when we could remove from our code the sc.??? which finalized the build. Oh well, no worries. Thakns!
Date Time Of Last Edit: 2021-06-11 21:33:07
|
[2021-06-11 21:34:25] |
John - SC Support - Posts: 38222 |
So you are ONLY using the Remote Build? If so, then this is not the cause of the issue, at least not that you are not manually releasing the DLL. There may be some issue with it, although nobody else has reported it. If you can choose the "Release All DLLs" and then remote compile and then "Load All DLLs" and let us know if it makes any difference. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-11 22:28:51] |
TriStar Trading - Posts: 148 |
Yes, The release and allow load works fine. Also, I have a second installation (not an instance) of SC on this PC. The same CPU error is occuring there. Same NotePad++ and SC version numbers. Both installations are behaving the same way as to teh error and as to the workaround of release and load DLL's. Message log attached. Seems ok from your end. Since version 2268 does the sc.LastCallToFunction. Maybe something there? Date Time Of Last Edit: 2021-06-13 23:21:04
|
![]() |
[2021-06-14 13:46:46] |
John - SC Support - Posts: 38222 |
Follow these instructions to get us your Message Log after the build has been done: Follow the instructions here to clear the Message Log: Message Log: Clearing the Message Log Build the custom study. After the study is built and after about 10 seconds, provide a copy of the Message Log following these instructions: https://www.sierrachart.com/index.php?page=PostingInformation.php#MessageLog For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-14 17:02:29] |
TriStar Trading - Posts: 148 |
SC Version 2273. Notepad++ v7.8.2 64 bit. For this test I created a new chartbook and chart. Only chart in the chartbook. I used the simplest cpp I have. I've attached as a file. I id three separate tests in sequential stages of DLL development. Test 1: Remote build with no existing DLL. Software version: 2273 64-bit | 2021-06-14 11:31:12.449 Primary Thread ID: 14424 | 2021-06-14 11:31:12.449 Usage end date: 2021-07-15 | 2021-06-14 11:31:12.449 Enabled for: Advanced Features 2. | 2021-06-14 11:31:12.449 Enabled for: Sierra Chart Historical Data Service. | 2021-06-14 11:31:12.449 Enabled for: Denali Real-Time Exchange Data Feed. | 2021-06-14 11:31:12.449 Enabled for: Delayed Denali Exchange Data Feed. | 2021-06-14 11:31:12.449 Enabled for exchange2: CME (Trading Account Required) | 2021-06-14 11:31:12.449 Enabled for exchange2: CBOT (Trading Account Required) | 2021-06-14 11:31:12.449 Enabled for exchange2: COMEX (Trading Account Required) | 2021-06-14 11:31:12.449 Enabled for exchange2: NYMEX (Trading Account Required) | 2021-06-14 11:31:12.449 Allow Support for Sierra Chart Data Feeds is enabled. | 2021-06-14 11:31:12.449 Current selected Data/Trading service: SC/TT Futures Order Routing | 2021-06-14 11:31:12.449 Custom symbol settings values: disabled | 2021-06-14 11:31:12.449 Chart Update Interval: 500 | 2021-06-14 11:31:12.449 Intraday Data Storage Time Unit: 0 | 2021-06-14 11:31:12.449 Time Zone: -05:00:00 (CST-06CDT+01,M3.2.0/02:00,M11.1.0/02:00) | 2021-06-14 11:31:12.449 2021-06-14 16:31:12 Local computer time in UTC | 2021-06-14 11:31:12.449 2021-06-14 11:31:12 Local computer time in SC Time Zone | 2021-06-14 11:31:12.449 2021-06-14 16:10:11 Server time in UTC | 2021-06-14 11:31:12.449 Local computer UTC time and Server UTC time difference: 1 seconds. | 2021-06-14 11:31:12.449 Program path: C:\SierraChart\ | 2021-06-14 11:31:12.449 Data Files path: C:\SierraChart\Data\ | 2021-06-14 11:31:12.449 OS Version Number: 10.0 | 2021-06-14 11:31:12.450 Locale Setting: C | 2021-06-14 11:31:12.450 DLLs: ETFISv3_64.dll, sst_FreeBundle_64.dll, TriStar_BaseDataAccess_MD99_64.dll, TriStar_DeltaAudioAlerts_MD99_64.dll, TriStar_DojiBar_MD99_64.dll, TriStar_ExtDeltaDifSignals_MD99_64.dll, TriStar_FlexRenkoPredictor_MD99_64.dll, TriStar_FL_BarColor_MD99_64.dll, TriStar_FL_Bolic_MD99_64.dll, TriStar_FL_Parabolic_MD99_64.dll, TriStar_FL_VS_FlipZone_MD99_64.dll, TriStar_FL_VS_MD99_64.dll, TriStar_FoMRelVol_MD99_64.dll, TriStar_FootprintAudioAlerts_MD99_64.dll, TriStar_FP_Parabolic_MD99_64.dll, TriStar_FuseLines_MD99_64.dll | 2021-06-14 11:31:12.450 Allowed protected custom studies: SST_FreeBundle, zyp_download_free | 2021-06-14 11:31:12.450 ESU21_FUT_CME 1 Min #1 | Reloading chart. | 2021-06-14 11:31:17.280 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | Creating socket. Using TLS 1.2. | 2021-06-14 11:33:31.535 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | New receive buffer size: 32768 | 2021-06-14 11:33:31.535 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | Connecting to IP: 88.99.0.216. | 2021-06-14 11:33:31.535 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | New receive buffer size: 65536 | 2021-06-14 11:33:36.156 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | New receive buffer size: 131072 | 2021-06-14 11:33:36.865 Setting study DLL module function objects to indicate DLL is not loaded: C:\SierraChart\Data\TriStar_MA_Cloud_MD99.dll | 2021-06-14 11:33:37.351 Study DLL module not found for: C:\SierraChart\Data\TriStar_MA_Cloud_MD99.dll | 2021-06-14 11:33:37.351 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | CloseSocket call. | 2021-06-14 11:33:37.615 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | Shutdown started. Waiting for graceful close. | 2021-06-14 11:33:37.615 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | Timed out waiting for shutdown. Performing an immediate socket close. | 2021-06-14 11:36:05.801 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | Closed. | 2021-06-14 11:36:05.801 HTTPS connection ID:2 to build.sierrachart.com:443 for request ID:2 (2) | Deleting network socket now after delay. | 2021-06-14 11:36:35.801 Test 2: Remote build with existing DLL. Study not applied to chart. Software version: 2273 64-bit | 2021-06-14 11:37:49.844 Primary Thread ID: 14424 | 2021-06-14 11:37:49.844 Usage end date: 2021-07-15 | 2021-06-14 11:37:49.844 Enabled for: Advanced Features 2. | 2021-06-14 11:37:49.844 Enabled for: Sierra Chart Historical Data Service. | 2021-06-14 11:37:49.844 Enabled for: Denali Real-Time Exchange Data Feed. | 2021-06-14 11:37:49.844 Enabled for: Delayed Denali Exchange Data Feed. | 2021-06-14 11:37:49.844 Enabled for exchange2: CME (Trading Account Required) | 2021-06-14 11:37:49.844 Enabled for exchange2: CBOT (Trading Account Required) | 2021-06-14 11:37:49.844 Enabled for exchange2: COMEX (Trading Account Required) | 2021-06-14 11:37:49.844 Enabled for exchange2: NYMEX (Trading Account Required) | 2021-06-14 11:37:49.844 Allow Support for Sierra Chart Data Feeds is enabled. | 2021-06-14 11:37:49.844 Current selected Data/Trading service: SC/TT Futures Order Routing | 2021-06-14 11:37:49.844 Custom symbol settings values: disabled | 2021-06-14 11:37:49.844 Chart Update Interval: 500 | 2021-06-14 11:37:49.844 Intraday Data Storage Time Unit: 0 | 2021-06-14 11:37:49.844 Time Zone: -05:00:00 (CST-06CDT+01,M3.2.0/02:00,M11.1.0/02:00) | 2021-06-14 11:37:49.844 2021-06-14 16:37:49 Local computer time in UTC | 2021-06-14 11:37:49.844 2021-06-14 11:37:49 Local computer time in SC Time Zone | 2021-06-14 11:37:49.844 2021-06-14 16:10:11 Server time in UTC | 2021-06-14 11:37:49.844 Local computer UTC time and Server UTC time difference: 1 seconds. | 2021-06-14 11:37:49.844 Program path: C:\SierraChart\ | 2021-06-14 11:37:49.844 Data Files path: C:\SierraChart\Data\ | 2021-06-14 11:37:49.844 OS Version Number: 10.0 | 2021-06-14 11:37:49.845 Locale Setting: C | 2021-06-14 11:37:49.845 DLLs: ETFISv3_64.dll, sst_FreeBundle_64.dll, TriStar_BaseDataAccess_MD99_64.dll, TriStar_DeltaAudioAlerts_MD99_64.dll, TriStar_DojiBar_MD99_64.dll, TriStar_ExtDeltaDifSignals_MD99_64.dll, TriStar_FlexRenkoPredictor_MD99_64.dll, TriStar_FL_BarColor_MD99_64.dll, TriStar_FL_Bolic_MD99_64.dll, TriStar_FL_Parabolic_MD99_64.dll, TriStar_FL_VS_FlipZone_MD99_64.dll, TriStar_FL_VS_MD99_64.dll, TriStar_FoMRelVol_MD99_64.dll, TriStar_FootprintAudioAlerts_MD99_64.dll, TriStar_FP_Parabolic_MD99_64.dll, TriStar_FuseLines_MD99_64.dll | 2021-06-14 11:37:49.846 Allowed protected custom studies: SST_FreeBundle, zyp_download_free | 2021-06-14 11:37:49.846 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | Creating socket. Using TLS 1.2. | 2021-06-14 11:38:02.049 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | New receive buffer size: 32768 | 2021-06-14 11:38:02.050 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | Connecting to IP: 88.99.0.216. | 2021-06-14 11:38:02.050 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | New receive buffer size: 65536 | 2021-06-14 11:38:06.681 Setting study DLL module function objects to indicate DLL is not loaded: C:\SierraChart\Data\TriStar_MA_Cloud_MD99.dll | 2021-06-14 11:38:07.842 Study DLL module not found for: C:\SierraChart\Data\TriStar_MA_Cloud_MD99.dll | 2021-06-14 11:38:07.842 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | CloseSocket call. | 2021-06-14 11:38:08.096 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | Shutdown started. Waiting for graceful close. | 2021-06-14 11:38:08.096 Saved Chartbook: Development.Cht. Time: 0.0011 seconds. | 2021-06-14 11:40:12.539 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | Timed out waiting for shutdown. Performing an immediate socket close. | 2021-06-14 11:40:35.806 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | Closed. | 2021-06-14 11:40:35.806 HTTPS connection ID:3 to build.sierrachart.com:443 for request ID:3 (2) | Deleting network socket now after delay. | 2021-06-14 11:41:05.806 Test 3: Remote build with existing DLL. Study applied to chart. Software version: 2273 64-bit | 2021-06-14 11:52:04.309 Primary Thread ID: 14424 | 2021-06-14 11:52:04.309 Usage end date: 2021-07-15 | 2021-06-14 11:52:04.309 Enabled for: Advanced Features 2. | 2021-06-14 11:52:04.309 Enabled for: Sierra Chart Historical Data Service. | 2021-06-14 11:52:04.309 Enabled for: Denali Real-Time Exchange Data Feed. | 2021-06-14 11:52:04.309 Enabled for: Delayed Denali Exchange Data Feed. | 2021-06-14 11:52:04.309 Enabled for exchange2: CME (Trading Account Required) | 2021-06-14 11:52:04.309 Enabled for exchange2: CBOT (Trading Account Required) | 2021-06-14 11:52:04.309 Enabled for exchange2: COMEX (Trading Account Required) | 2021-06-14 11:52:04.309 Enabled for exchange2: NYMEX (Trading Account Required) | 2021-06-14 11:52:04.309 Allow Support for Sierra Chart Data Feeds is enabled. | 2021-06-14 11:52:04.309 Current selected Data/Trading service: SC/TT Futures Order Routing | 2021-06-14 11:52:04.309 Custom symbol settings values: disabled | 2021-06-14 11:52:04.309 Chart Update Interval: 500 | 2021-06-14 11:52:04.309 Intraday Data Storage Time Unit: 0 | 2021-06-14 11:52:04.309 Time Zone: -05:00:00 (CST-06CDT+01,M3.2.0/02:00,M11.1.0/02:00) | 2021-06-14 11:52:04.309 2021-06-14 16:52:04 Local computer time in UTC | 2021-06-14 11:52:04.309 2021-06-14 11:52:04 Local computer time in SC Time Zone | 2021-06-14 11:52:04.309 2021-06-14 16:10:11 Server time in UTC | 2021-06-14 11:52:04.309 Local computer UTC time and Server UTC time difference: 1 seconds. | 2021-06-14 11:52:04.309 Program path: C:\SierraChart\ | 2021-06-14 11:52:04.309 Data Files path: C:\SierraChart\Data\ | 2021-06-14 11:52:04.309 OS Version Number: 10.0 | 2021-06-14 11:52:04.310 Locale Setting: C | 2021-06-14 11:52:04.310 DLLs: ETFISv3_64.dll, sst_FreeBundle_64.dll, TriStar_BaseDataAccess_MD99_64.dll, TriStar_DeltaAudioAlerts_MD99_64.dll, TriStar_DojiBar_MD99_64.dll, TriStar_ExtDeltaDifSignals_MD99_64.dll, TriStar_FlexRenkoPredictor_MD99_64.dll, TriStar_FL_BarColor_MD99_64.dll, TriStar_FL_Bolic_MD99_64.dll, TriStar_FL_Parabolic_MD99_64.dll, TriStar_FL_VS_FlipZone_MD99_64.dll, TriStar_FL_VS_MD99_64.dll, TriStar_FoMRelVol_MD99_64.dll, TriStar_FootprintAudioAlerts_MD99_64.dll, TriStar_FP_Parabolic_MD99_64.dll, TriStar_FuseLines_MD99_64.dll | 2021-06-14 11:52:04.310 Allowed protected custom studies: SST_FreeBundle, zyp_download_free | 2021-06-14 11:52:04.310 HTTPS connection ID:7 to build.sierrachart.com:443 for request ID:7 (2) | Creating socket. Using TLS 1.2. | 2021-06-14 11:52:16.478 HTTPS connection ID:7 to build.sierrachart.com:443 for request ID:7 (2) | New receive buffer size: 32768 | 2021-06-14 11:52:16.478 HTTPS connection ID:7 to build.sierrachart.com:443 for request ID:7 (2) | Connecting to IP: 88.99.0.216. | 2021-06-14 11:52:16.478 HTTPS connection ID:7 to build.sierrachart.com:443 for request ID:7 (2) | New receive buffer size: 65536 | 2021-06-14 11:52:21.077 HTTPS connection ID:7 to build.sierrachart.com:443 for request ID:7 (2) | New receive buffer size: 131072 | 2021-06-14 11:52:22.185 Setting study DLL module function objects to indicate DLL is not loaded: C:\SierraChart\Data\TriStar_MA_Cloud_MD99.dll | 2021-06-14 11:52:22.244 Unloaded DLL: C:\SierraChart\Data\TriStar_MA_Cloud_MD99.dll. Handle: 2560000 | 2021-06-14 11:52:22.269 Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:22.279 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:22.279 * HTTPS connection ID:7 to build.sierrachart.com:443 for request ID:7 (2) | CloseSocket call. | 2021-06-14 11:52:22.517 HTTPS connection ID:7 to build.sierrachart.com:443 for request ID:7 (2) | Shutdown started. Waiting for graceful close. | 2021-06-14 11:52:22.517 Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:22.768 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:22.768 * Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:23.269 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:23.269 * Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:23.768 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:23.768 * Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:24.271 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:24.271 * Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:24.768 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:24.768 * Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:25.268 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:25.268 * Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:25.771 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:25.771 * Warning: The Custom DLL study "TriStar_MA_Cloud_MD99.scsf_MA_Cloud_MD99" has just caused a CPU exception. | 2021-06-14 11:52:26.269 * Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2021-06-14 11:52:26.269 * The I remove the study from the chart which stops the CPU Exception error. When I add back the study to the chart there is no exception error. One time when adding back I got the second attachemnt but I can't seem to reproduce. Hope this helps and THANKS! I see your name everywhere in this forum John. You must be the resident expert. :) Let me know should you need anything else. Mike |
![]() ![]() |
[2021-06-14 18:54:16] |
John - SC Support - Posts: 38222 |
Thank you, now we are understanding what is happening. So, in the end, there is something about your code that is causing the problem. But the problem is coming about when the DLL is being unloaded. In other words, it is happening when there is a last call to the DLL. We do not see any offhand reason for it given your code. But take a look a this variable: ACSIL Interface Members - Variables and Arrays: sc.LastCallToFunction For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-06-14 19:40:36] |
TriStar Trading - Posts: 148 |
Thanks. I compiled the SC Template.cpp without any changes and it behaved the same. I then tried adding if (sc.LastCallToFunction) return;//nothing to do to both cpp's as the first executed processing line in the cpp and the result was the same. So it seems you are correct in that the code is not the problem. Hardware maybe? I know you guys don't get into that. I have a friend I am asking to run through these same tests on another PC but I suspect if you have had no problems she won't either. Things work if I manually release and reload the DLL I am recompiling. So we have a workaround. Thank you for that. FWIW - I am using an AMD FX-8350 Eight-Core Processor should anyone else have an issue. Maybe it is related to AMD's since the vast majority of folks are usually Intel. Thanks and no reason to spend any more of your time on this. Looking forward to CME Direct Routing. :) Date Time Of Last Edit: 2021-06-14 19:53:23
|
[2021-06-15 15:51:41] |
User4761 - Posts: 9 |
I can confirm the above continuous CPU errors with the same behaviour when I upgraded to version 2270 with all of my custom studies (also with remote build). I have also tested with a barebones study and with the template.cpp provided with the SC installation. I have tested 2256 which works fine and with 2268, which is where the problem starts. I have also tested on a 2nd pc with a fresh install of SC. I don’t believe this to be an error with my code as I have tested with the template without changes. Also im not sure it has to do with the unloading of the DLL because if I rebuild the DLL a 2nd time the error stops. In effect, if you keep rebuilding the dll over and over, the errors only happens every 2nd time. It looks like a problem with the 2268 update, maybe when you changed the dll unloading. |
[2021-06-15 16:14:45] |
TriStar Trading - Posts: 148 |
Sorry for your troubles User4761 but it is sort of nice to hear it's not just me. ;) :) Around the release of 2268 is when my problems started also. That's when sc.LastCallToFunction was set to true on DLL unload. I never thought of trying the rebuild a second time. I have always removed the study and added it back in. Are you leaving the study on the chart when rebuilding the second time? I will try the second rebuild and get abck with results.
Date Time Of Last Edit: 2021-06-15 16:15:27
|
[2021-06-15 16:33:25] |
User4761 - Posts: 9 |
rebuilding works but quicker workaround is to release all dlls, rebuild then allow load dlls after. All from that same build menu dropdown.
|
[2021-06-15 18:57:30] |
|
We need more time to look into this issue and find out what the cause is. This is not very easy.
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 |
[2021-06-15 20:18:47] |
TriStar Trading - Posts: 148 |
FWIW USer4761, the dual recompile also behaves the same way here. So far it seems our issues are in lockstep. I wondered above about maybe a hardware issue. I am using an AMD Processor. Are you Intel or AMD?
|
[2021-06-16 03:27:51] |
User719512 - Posts: 299 |
Are you using MaintainVolumeAtPriceData? If so, see my issue and workaround here: Sierra Chart crashes when rebuilding study dll that uses sc.MaintainVolumeAtPriceData = 1 Also, you might be able to connect a debugger and catch a stack trace. Would be cool if Sierra had public symbols to capture stack traces with more info in such cases. |
[2021-06-16 03:42:09] |
TriStar Trading - Posts: 148 |
Thanks for the help User719512. We have both tested the most simple code we have as well as tested the SC Template cpp. Both tests by both of us behaved the same. We doubt it is in the code. Problems started at SC v2268 with the sc.LastCallToFunction change. We're assuming it's related. I do have VAP studies but I don't recall recompiling those. But I will test. I have not had the need to use a debugger up to this point. What would you suggest? I used to be familiar with Visual C++ in a past life but haven't wanted to dig in again. Lots of new stuff there I think. :)
|
[2021-06-16 03:49:38] |
User719512 - Posts: 299 |
For debugger, see the Sierra docs, but with your experience, Visual Studio Community would be what you want and Debug | Attach to Process. But perhaps that is not needed if Sierra Engineering has what they need to debug the issue. Who knows, maybe my issue is related to LastCallToFunction.
|
[2021-06-16 03:54:22] |
User4761 - Posts: 9 |
I'm not using MaintainVolumeAtPriceData and the 2 systems I tested on are amd & intel
|
[2021-06-16 16:31:56] |
Sierra_Chart Engineering - Posts: 18578 |
Update to the latest prerelease and see if you still have the same issue. Instructions: Software Download: Fast Update 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2021-06-16 16:32:06
|
To post a message in this thread, you need to log in with your Sierra Chart account: