Login Page - Create Account

Support Board


Date/Time: Thu, 16 May 2024 02:40:07 +0000



Post From: Using Visual Studio C++ to create Custom Studies

[2021-06-30 17:00:24]
bradh - Posts: 857
jmt816 says:
At the risk of stating the obvious (tho it might be what you are missing), when you go to rebuild your DLL, are you first going to Analysis--> Build Advanced Custom Studies DLL and then from the Build menu, select either "Release All DLLs" or "Release Single DLL"?

It is not that obvious, but the answer is NO. There is no need to release DLLs when you use any of the build options on the build menu: Remote, Visual C++ - Release, and Visual C++ - Debug. The build menu takes care of the release and reload of DLLs, and you can confirm this in the Message Log:
Disallowing loading of DLL: C:\SierraChart\Data\My_Custom_Study.dll | 2021-06-30 11:47:31.820
Setting study DLL module function objects to indicate DLL is not loaded: C:\SierraChart\Data\My_Custom_Study.dll | 2021-06-30 11:47:31.820
Unloaded DLL: C:\SierraChart\Data\My_Custom_Study.dll. Handle: 7ffe84730000 | 2021-06-30 11:47:31.821

I do all my builds this way, never in Visual Studio, which really simplifies the configuration of VS. I am probably missing out on some of the advanced features of VS, but as long as I can edit, use Git, and debug with VS, I am OK.
Date Time Of Last Edit: 2021-06-30 17:02:37