Support Board
Date/Time: Sun, 24 Nov 2024 08:54:16 +0000
"sc.FreeDLL =1;" seems to be ignored in version 976
View Count: 2673
[2013-05-16 11:40:28] |
hairyMug - Posts: 31 |
I can no longer re-compile my DLL with SC running. I now have to exit SC to get the custom DLL to be able to get linked: Error 1 error LNK1168: cannot open D:\SierraChart\Data\mymacd.dll for writing This did not happen in v969 and previous versions... |
[2013-05-16 16:29:10] |
Sierra Chart Engineering - Posts: 104368 |
We are not seeing a problem with this. Check every study you have within the custom studies CPP file and make sure they all have sc.FreeDLL = 1. Make sure they all expressly have it. Probably one of them does not. 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 |
[2013-10-11 16:21:08] |
gabby alindogan - Posts: 49 |
Hi. I am having the following error which gets solved by closing SC and reopening it. I have sc.FreeDLL=1; on all of my studies. Any idea why it is happening? Strange thing is that the access error is sporadic. Sometimes, I compile the CPP code and it works , other times, I get error below. >------ Rebuild All started: Project: Fx2, Configuration: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppClean.targets(74,5): warning : Access to the path 'c:\SierraChart\Data\Fx2.dll' is denied. 1> FxTest.cpp 1>c:\users\galindog\documents\visual studio 2010\projects\fx2\fx2\fxtest.cpp(93): warning C4305: 'argument' : truncation from 'double' to 'float' 1>LINK : fatal error LNK1104: cannot open file 'c:\SierraChart\Data\Fx2.dll' ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== |
[2013-10-11 16:27:21] |
Sierra Chart Engineering - Posts: 104368 |
Even if you have set sc.FreeDLL=1; You can still encounter an access is denied error when building the DLL because it will be temporarily loaded when the charts containing the study are performing calculations. So this is not unusual. 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: 2013-10-11 16:27:40
|
[2013-10-11 16:49:37] |
gabby alindogan - Posts: 49 |
I disconnected the datafeed to prevent any more calculations. I even unloaded the chartbook containing the studies. The only solution is to close SC then compile it (I use c++ Visual Studio express as per website instructions). What then is the purpose of sc.freedll=1 then? Just curious? Thanks.
|
[2013-10-11 18:15:25] |
gabby alindogan - Posts: 49 |
Hi. I had the word "return" just before the if sc.setdefaults { } block. One of the statements inside the block was the sc.freedll=1. After removing "return" , it works fine. Sorry for the bother. |
[2013-10-11 18:56:08] |
Sierra Chart Engineering - Posts: 104368 |
OK this is good. Also, we ran a test and we did not see a problem with the loading and unloading: 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. 'SierraChart.exe': Unloaded 'D:\data2\test1.dll' 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. 'SierraChart.exe': Unloaded 'D:\data2\test1.dll' 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. 'SierraChart.exe': Unloaded 'D:\data2\test1.dll' 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. 'SierraChart.exe': Unloaded 'D:\data2\test1.dll' 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. 'SierraChart.exe': Unloaded 'D:\data2\test1.dll' 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. 'SierraChart.exe': Unloaded 'D:\data2\test1.dll' 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. 'SierraChart.exe': Unloaded 'D:\data2\test1.dll' 'SierraChart.exe': Loaded 'D:\data2\test1.dll', Binary was not built with debug information. The other thing we were going to mention as a possibility is if you are doing step-by-step debugging, that may cause the DLL to be loaded and locked permanently until the process closes down. This will require a restart of Sierra Chart to release it. 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: