Support Board
Date/Time: Sat, 23 Nov 2024 19:18:06 +0000
Post From: Offering To The Community: Brett Johnson's Standard Tool Kit
[2017-04-10 04:55:56] |
bjohnson777 (Brett Johnson) - Posts: 284 |
I recompiled the main DLL with every upgrade because of some recent updates that broke older compatibility or because of some updates that are internal and not visible but can still cause erratic behavior or study failure. This happens from time to time as the SC dev's add new functions and is normal. If anyone runs into strange problems, it's usually fixed by a quick and easy recompile: * Download and save the .cpp file in your ACS_Source directory. * Run SC but don't open any chart windows yet. If you have auto-load running, try closing them out. The source will recompile, but it will complain about the DLL being loaded in the background. * Go to Analysis >> Build Custom Studies DLL. * Hit "Select File(s)". In the ACS_Source directory, look for the .cpp file you just saved. Select it and hit Open. If you don't know where your ACS_Source directory is located, look at the top of the "Select" window for the full path. * Hit the "Build >> Remote Build" from the menu. This will take a minute to do. It may return some warnings. So long as they're not fatal, it's fine. If you've already opened chart windows, there will be an error about the DLL already being loaded. We'll fix that in the next step. * If you haven't loaded any chart windows yet, you can do so now. The programs in the DLL should run normally again. If you've had some chart windows open and got the DLL error above, exit and run SC again. * You can import the custom study from Analysis / Studies / Add Custom Study, then scroll through the list and select what you want. These steps should get you running again. They're also pretty universal and should work with other people's .cpp files, too. If you get stuck, the SC dev's have a compile instruction page in the documentation that can help. Question: Should I recompile on a regular basis? Answer: Yes, go ahead and do a recompile every new SC release version you install. I try to keep all my source code in the DLL to make this a single and simple operation. If you're running code from other people who also have a lot of chart studies/programs, encourage them to build a single DLL like I did. My code and the examples in the ACS_Source directory can be used as a template. Date Time Of Last Edit: 2021-06-15 16:29:59
|