Login Page - Create Account

Support Board


Date/Time: Tue, 16 Apr 2024 13:58:58 +0000



Errors with compilators

View Count: 1283

[2018-02-19 10:44:19]
User470516 - Posts: 78
Dear Madam, Dear Sir,

I experience problems when compiling.

I use either SC's compilator or Visual Studio (VS) and experience problems with both. In both cases, the problem appears when I modify an existing source code. The problem seems to never happen when I first create a new source code file. In both cases, modifications in the source code are not taken into account when machine code is built.

With VS when I compile a source code that I have already compiled, changes are not taken into account. I then delete all files generated by the building of the machine code (including the .dll file) and build again. All the files generated by the build operation then appear in the SC\Data folder again but when I try to add the corresponding study using the "add custom study button" of the study window, the study file is just not visible even though the .dll file is in the proper folder.

With SC's compilator, whatever the changes I make to the source code, modifications are not taken into account. This problem seems to happen after a few number of code changes/compilations, but not the very first few times where I make changes to the source code.

The same problem appears on two different computers, but they both contain the same copy of the SC's folder.

Would you have any hints to help me direct my searches to fix this?

Thank you for your support.

Best regards,

Laurent
[2018-02-20 17:14:22]
Sierra Chart Engineering - Posts: 104368
1. We recommend that you remove the study from the chart and add it again after making any changes to the source code and recompiling.

You also need to consider, that your study function may not even be functioning properly and you are coming to the wrong conclusion as to the source of the problem.

2. Also refer to:
Advanced Custom Study Interface and Language (ACSIL): Modifying Advanced Custom Study Code
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-02-20 17:14:34
[2018-02-23 14:12:46]
User470516 - Posts: 78
Dear Madam, dear Sir,

Thanks for your time and response.

I am aware of everythings you mentionned and I had acted accordingly already. It is not a problem of code either, as I have created a simple code that functions to isolate the problem.

I have made progresses on isolating the problem. I have created an environment to develop programs which is separate from the "operating" environment that I use for trading. Developments are now made in a new client instance which I have created.

What happens is that after a number of compilations an error happens that I had not paid attention to (I apolopyze for this) which says that the compilor cannot overwrite the dll file as it is used by another process (windows error 32). It is not the antivirus as there is none on this platform.

I still have the problem in the development environment but less frequently. I have used my tool that tells me which processes currently use a program or file and in our case there is only one program that uses the dll file that cannot be overwritten by the compiler: SierraChart.exe.

Would you have any ideas?

I appreciate you support.

Regards,

Laurent
[2018-02-23 18:11:53]
Sierra Chart Engineering - Posts: 104368


What happens is that after a number of compilations an error happens that I had not paid attention to (I apolopyze for this) which says that the compilor cannot overwrite the dll file as it is used by another process (windows error 32). It is not the antivirus as there is none on this platform.

To avoid this problem you need set this variable to true:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Variables_And_Arrays.html#scFreeDLL

Also refer to:

Advanced Custom Study Interface and Language (ACSIL): Modifying Advanced Custom Study Code

Otherwise, the problem is not something that we would know the cause of. It is not anything we could help with.
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-02-23 18:12:19
[2018-04-02 18:13:10]
User470516 - Posts: 78
Dear Madam, dear Sir,

Being more experienced with SC, I have been able to eventually isolate the problem.

You may consider it is not a bug, in which case, a note in the documentation would help.

I thought I had a compilation problem, i.e. certain modifications of the source code were not reflected in the dll.

What happens is that at the beginning of my coding experience with SC, I was making some basic changes to the code which always related to changes of scale, or value format... Changes that all related to parameters of the study setting window. Those changes do not apply if you have once used the "save these settings as the default". Once you have made that choice, even if you re-compile the new code and the old .dll file is erased. Parameters and variables within the source code that relate to settings defined by the "study settings window" will never be taken into account. I would have expected that a new compilation would have overriden the "save settings as default". It is not the case: to do so, you have to reset defaults, which is surprising when you override the dll with a new compilation. Should you choose to leave it as ti is, I think a brief explanation in the documentation would help.

Regards,

Laurent
PS: we can close this post after your reply if you so wish.
[2018-04-02 21:11:07]
Sierra Chart Engineering - Posts: 104368
OK we understand, we are going to explain this in the documentation here:

Advanced Custom Study Interface and Language (ACSIL): Modifying Advanced Custom Study Code


This is not something that ever would have crossed our mind.
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

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

Login

Login Page - Create Account