Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 05:00:42 +0000



Advanced Custom Studies DLL Loading Management

View Count: 10341

[2021-01-23 01:03:18]
Sierra Chart Engineering - Posts: 104368
The Data Files Folder:
General Settings Window: Data Files Folder (Global Settings >> General Settings >> Paths >> Files and Folder Paths)


Test the latest prerelease. The folder is always now overridden in the case of custom study DLLs to be the Data Files Folder.

One thing that we would like to do and eventually will get to, is to have a dedicated folder in Sierra Chart to contain DLLs.

Additionally, if the DLL wants to load other dependencies in subfolders, then certainly we can support distribution to those subfolders of files, and the DLL can discover its own location through the operating system and then load the necessary dependency modules.
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: 2021-01-23 10:31:02
[2021-01-23 12:33:42]
TedMar - Posts: 189
Test the latest prerelease. The folder is always now overridden in the case of custom study DLLs to be the Data Files Folder.

No differnce , Dll load / reload impossible :(
[2021-01-23 12:42:08]
@sstfrederik - Posts: 403
Ted. You are using the release and allow load incorrectly.

When SC is running and you try to add a custom study all the dll’s in the data dir will be loaded by SC.

In this state you can not replace any dll’s.

You can release a single or all dll’s while SC is running. This will allow you to replace a dll file.

After that you can click “allow load” so your new study dll will be available when adding a custom study.
[2021-01-23 20:41:17]
TedMar - Posts: 189
post #27

Thank u @sstfrederik , i checked my old UDP Load and Unload scripts, now i remember me, i programmed the last time in Sierra about 1.5 years ago.
little fix on my side in VS Pre /Post build event , all works now ..
[2021-01-26 17:46:14]
rahul - Posts: 160
Issues with Version 2222.

Cannot load DLL file after it is compiled. It shows up correctly in the Data Folder, but it doesn't show up in the add study screen in Sierra Chart.
[2021-01-26 17:50:35]
Sierra Chart Engineering - Posts: 104368
Regarding post #29, check the Window >>Message Log for any messages related to the loading of the DLL. Copy and paste them here.

What is the exact file name?
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-01-26 17:55:59]
rahul - Posts: 160
Messaged updated:

I have 2 files that I am compiling:
sc_SarinTrading_MAC_Anchor_26Jan2021_2.dll
sc_SarinTrading_MAC_Anchor_26Jan2021_3.dll

Both of these get compiled successfully, but only the _2 file loads. If I delete the _2 file and restart SC and compile _3 file, the _3 loads file.
Was not having issues prior when I was running version 2215 prior to this.


DLLs: UserContributedStudies.dll, UserContributedStudies_64.dll | 2021-01-26 12:57:17.556
Failed to get the function address for scsf_OneTimeFraming in D:\SierraChart (Development)\Data\SierraChartStudies.dll. Error: Windows error code 127: The specified procedure could not be found. | 2021-01-26 12:57:35.098
Loading DLL: D:\SierraChart (Development)\Data\UserContributedStudies_64.dll. Handle: 7ff9f8ab0000 | 2021-01-26 12:57:36.110
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | Creating socket. Using TLS 1.2. | 2021-01-26 12:57:55.871
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | New receive buffer size: 32768 | 2021-01-26 12:57:55.871
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | Connecting to IP: 88.99.0.216. | 2021-01-26 12:57:55.871
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | New receive buffer size: 65536 | 2021-01-26 12:58:00.656
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | New receive buffer size: 131072 | 2021-01-26 12:58:01.316
Setting study DLL module function objects to indicate DLL is not loaded: D:\SierraChart (Development)\Data\sc_SarinTrading_MAC_Anchor_26Jan2021.dll | 2021-01-26 12:58:01.540
Study DLL module not found for: D:\SierraChart (Development)\Data\sc_SarinTrading_MAC_Anchor_26Jan2021.dll | 2021-01-26 12:58:01.540
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | CloseSocket call. | 2021-01-26 12:58:01.810
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | 0 bytes remaining in receive buffer when socket closed. | 2021-01-26 12:58:01.810
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (2) | Shutdown started. Waiting for graceful close. | 2021-01-26 12:58:01.810
Loading DLL: D:\SierraChart (Development)\Data\sc_SarinTrading_MAC_Anchor_26Jan2021_2_64.dll. Handle: 6a0000 | 2021-01-26 12:58:04.944
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (3) | Creating socket. Using TLS 1.2. | 2021-01-26 12:58:12.850
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (3) | New receive buffer size: 32768 | 2021-01-26 12:58:12.851
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (3) | Connecting to IP: 88.99.0.216. | 2021-01-26 12:58:12.851
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (3) | New receive buffer size: 65536 | 2021-01-26 12:58:17.490
Setting study DLL module function objects to indicate DLL is not loaded: D:\SierraChart (Development)\Data\sc_SarinTrading_MAC_Anchor_26Jan2021.dll | 2021-01-26 12:58:18.432
Unloaded DLL: D:\SierraChart (Development)\Data\sc_SarinTrading_MAC_Anchor_26Jan2021.dll. Handle: 6a0000 | 2021-01-26 12:58:18.432
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (3) | CloseSocket call. | 2021-01-26 12:58:18.703
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (3) | 0 bytes remaining in receive buffer when socket closed. | 2021-01-26 12:58:18.703
HTTPS connection ID:1 to build.sierrachart.com:443 for request ID:1 (3) | Shutdown started. Waiting for graceful close. | 2021-01-26 12:58:18.703
Loading DLL: D:\SierraChart (Development)\Data\sc_SarinTrading_MAC_Anchor_26Jan2021_2_64.dll. Handle: 6a0000 | 2021-01-26 12:58:21.453

This is the error produced in message log.
Date Time Of Last Edit: 2021-01-26 18:02:17
[2021-01-26 22:59:12]
Sierra Chart Engineering - Posts: 104368
These names need to be different with the _ and the number at the end:

sc_SarinTrading_MAC_Anchor_26Jan2021_2.dll
sc_SarinTrading_MAC_Anchor_26Jan2021_3.dll

For example:
sc_SarinTrading_MAC_Anchor_26Jan2021_A.dll
sc_SarinTrading_MAC_Anchor_26Jan2021_B.dll

Or you could try:
sc_SarinTrading_MAC_Anchor_26Jan2021.2.dll
sc_SarinTrading_MAC_Anchor_26Jan2021.3.dll
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: 2021-01-27 03:43:55
[2021-01-27 00:04:35]
rahul - Posts: 160
These names need to be different other than the _ and the number at the end:

sc_SarinTrading_MAC_Anchor_26Jan2021_2.dll
sc_SarinTrading_MAC_Anchor_26Jan2021_3.dll

For example:
sc_SarinTrading_MAC_Anchor_26Jan2021_A.dll
sc_SarinTrading_MAC_Anchor_26Jan2021_B.dll

Or you could try:
sc_SarinTrading_MAC_Anchor_26Jan2021.2.dll
sc_SarinTrading_MAC_Anchor_26Jan2021.3.dll

Thanks...so I assume, this should work (adding a "v" before the number):
sc_SarinTrading_MAC_Anchor_26Jan2021_v2.dll
sc_SarinTrading_MAC_Anchor_26Jan2021_v3.dll
[2021-01-27 12:10:30]
aknsyu71@gmail - Posts: 49
Dear Sierra,
I have numerous custom dll's all ending with _ and number, these studies are applied to many charts and study collections, it will be a mayor undertaking to rename these.

Are you able to leave this unchanged? ie allow dll naming to end in _ and a number (other than _64 of course)

Many thanks
[2021-01-27 13:42:00]
Sierra Chart Engineering - Posts: 104368
This is a permanent change. We do apologize for this.
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-01-31 01:28:03]
Ackin - Posts: 1863
Since starting a new DLL Loading Management, another strange thing appears.

SC: You know for sure because it was one of the bugs in the lower version of Sierrachart. (scsf_OneTimeFraming in C:\SierraChart\Data\SierraChartStudies.dll. Error: Windows error code 127)

So it's more of a warning to other developers.

If you distributed a library to someone and then rename it scsf_xxxxxx to another name (or delete the study), after uploading a new version of the library, the entire library will be disabled for the end user. Error 127 is reported to him, but even after removing the study from the chart, the library no longer appears in the list, the library must be reloaded, or better for laymen, save chart without a faulty study and restart Sierrachart. Then the library will be loaded correctly.
[2021-01-31 01:56:21]
Sierra Chart Engineering - Posts: 104368
Regarding post #36 this does not make sense to us at all. We need very very specific details of filenames and precisely exactly what you are doing step-by-step. You are making a sound as though there is something wrong. That is just not the case at all.

We are certain, there is no problem at all and there is just something else going on or a misinterpretation.
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: 2021-01-31 01:56:57
[2021-01-31 03:03:44]
Ackin - Posts: 1863
You are making a sound as though there is something wrong. That is just not the case at all.............We are certain, there is no problem at all and there is just something else
Guys.....I like your program. After all, we all just try to make everything work without any surprises. Nothing more....

Take a look at the attachment ... In earlier versions of Sierrachart, if a study in the library was deleted but someone already used it in the chart it appeared at the end of the list of all studies as non-existent .... Now the whole library has gone ....

It doesn't limit me when I know it, I wrote it above for others (or for you if you're interested about it)


Compiled for ver 2217 but tested 2217,2220,2222,2225
Date Time Of Last Edit: 2021-01-31 13:05:55
imageLibrary Issue.png / V - Attached On 2021-01-31 03:04:04 UTC - Size: 106.1 KB - 483 views
[2021-01-31 11:30:16]
Sierra Chart Engineering - Posts: 104368
We cannot reproduce any problem like this and we do not have any clear instructions from you.
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-01-31 11:37:37]
Ackin - Posts: 1863
We cannot reproduce any problem like this and we do not have any clear instructions from you.

step-by-step
1) Create a .CPP file
2) Insert into this file, for example, the ATR study + the MACD study
3) Recompile the library (.DLL)
4) Run the Sierrachart higher than ver2217
5) Create / open a chart
6) Use the ATR study from .DLL in this chart
7) Save the chart file
8) Close the Sierrachart
9) Remove the ATR study from the source code (.CPP)
10) Recompile the library (.DLL)
11) Run the Sierrachart
12) Open the chart with the ATR study inside (created in steps 5 and 6)
13) In the List of libraries ***, the library (in which the ATR study was located before the removing) is missing and the MACD study cannot be used
14) There is a line: "Error: Windows 127 error code"...This is applied to the whole library and other studies from this (.DLL) are invisible


*** List of libraries = The list from Menu >> Analysis >> Studies >> Add Custom Study
Date Time Of Last Edit: 2021-01-31 13:02:42
[2021-02-01 10:37:18]
Sierra Chart Engineering - Posts: 104368
There is no need for a restart to reproduce this. It really relates to removing the very first study from a Custom Studies DLL, which is also used on a chart.

This is resolved in version 2226.
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
[2023-11-21 11:12:42]
Gravity369 - Posts: 16
Hi,

I have been struggling with this for almost a year and I discovered a little trick/hack to this ancient problem.

Do not use more than one "underscore" (_) while naming the file. It works for me. I am not sure why, it just works for me.

Hope this helps all the guys who are struggling with ".DLL" not getting listed in the ADD CUSTOM STUDY list.

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

Login

Login Page - Create Account