Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 20:06:31 +0000



ACSIL - Unable to write .dll using MS Visual Studio & sc.FreeDLL

View Count: 1821

[2018-07-22 22:19:04]
User486568 - Posts: 10
I am having trouble using the development mode of
sc.FreeDLL = 1;
when using MS Visual Studio for my editor and building.

When using the same exact source code it will allow the dll to reload fine if I use the Sierrachart remote building tool.

Here is the error messages I get when trying to rebuild:
Severity  Code  Description  Project  File  Line  Suppression State
Error  LNK1104  cannot open file 'C:\SierraChart\Data\MJG2CustomStudies.dll'  MJG2CustomStudies  C:\Users\stitch\source\repos\MJG2CustomStudies\MJG2CustomStudies\LINK  1  

I've tried with both Release & Debug and neither seem to allow rewriting the dll file.
[2018-07-24 15:18:16]
User735640 - Posts: 14
I had this issue once when I was trying to set the value to "1" when the value was already set to "0".

I first had to remove the dll study from all charts it was applied to and then compile it with VS.
After it compiled and was added back to the chart.
I was then able to debug the dll and make inline code changes with no problems.
[2018-07-24 18:33:37]
Sierra Chart Engineering - Posts: 104368
Refer to this section here about this:
Advanced Custom Study Interface and Language (ACSIL): Modifying Advanced Custom Study Code

I first had to remove the dll study from all charts it was applied to and then compile it with VS.
You actually just need to restart Sierra Chart after changing that setting.
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: 2018-07-24 18:34:31
[2018-07-24 19:36:43]
User486568 - Posts: 10
I never had it set to
sc.FreeDLL = 0;
- I definitely tried restarting SierraChart (in fact I had to in order to have any subsequent builds of the dll work.

Any other things I should check?
[2018-07-24 20:10:25]
Sierra Chart Engineering - Posts: 104368
But make sure every function within the DLL uses sc.FreeDLL = 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
[2018-07-24 22:58:24]
User486568 - Posts: 10
There is only one function - this is a super simple test just trying to get the basics working.
[2018-07-26 16:52:59]
Sierra Chart Engineering - Posts: 104368
We do not know what the problem is. It would seem like the DLL is not getting released.

If you do not experience this with Remote Build, then it could not be an issue on our side.
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: 2018-07-26 16:53:09

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

Login

Login Page - Create Account