Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 05:25:55 +0000



debugging my function calls to external DLLs

View Count: 942

[2015-02-25 18:28:07]
shrubberyMoves - Posts: 2
For faster debugging of my custom study, I have set sc.FreeDLL = 1. Therefore I am storing HMODULE my_Handle_To_External_DLL as a persistent variable, rather than as the global variable recommended in "ACSIL Programming Concepts > Making Function Calls to External DLLs." All appears well.

1) by not using a global HMODULE, will multiple copies of the same DLL be loaded for the same study used on different charts?
2) do i need to call FreeLibrary myself?
3) anything else i should mind?

Thank you in advance.
[2015-02-25 19:15:26]
Sierra Chart Engineering - Posts: 104368
1. No.

2. Yes.

3. Just make sure you call FreeLibrary for every time LoadLibrary has been called.
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