Are data of a DLL shared across different chart ?

Questions about MultiCharts and user contributed studies.
Guest

Are data of a DLL shared across different chart ?

Postby Guest » 20 May 2009

hi,

When we use the same DLL : and request the same DLL function in 2 or 3 chart:

Is the DLL information shared across the charts ,

or is it a new instance of the DLL, with empty memory

each time we create a new chart ? :?: :?: :?:

Emmanuel :)

Emmanuel
Posts: 337
Joined: 21 May 2009
Has thanked: 106 times
Been thanked: 24 times

Postby Emmanuel » 21 May 2009

Hi, :)

Does anyone know the answer for this question ????
:?:
I would like to know

Thank you

Emmanuel

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 22 May 2009

DLL is loaded in memory one time for each MultiCharts process. Memory is not cleared. All global variables inside this DLL will save its values. However DLL will be unloaded when you delete all studies from charts that loaded the DLL.

Emmanuel
Posts: 337
Joined: 21 May 2009
Has thanked: 106 times
Been thanked: 24 times

Postby Emmanuel » 22 May 2009

Hi Andrew,

Thank you very much for this precious information,

this is usefull to be able to share the same Dll across the differents charts.

Thank you very much for your answer :wink:

Emmanuel

Emmanuel
Posts: 337
Joined: 21 May 2009
Has thanked: 106 times
Been thanked: 24 times

Postby Emmanuel » 22 May 2009

Hi Andrew, :)

When you write :

"DLL is loaded in memory one time for each MultiCharts process."

Do you mean : a new MultiCharts process is loaded for each new chart or

a new MultiCharts process for all the charts ? :?:

Best Regards

Emmanuel

Emmanuel
Posts: 337
Joined: 21 May 2009
Has thanked: 106 times
Been thanked: 24 times

Postby Emmanuel » 22 May 2009

Hi Andrew,

I made some test tonight with my DLL,

and see that the same dll shared the data across all the charts this is very usefull :wink:

I was asking the previous questions reagarding DLL shared memory on the previous message, because, you wrote on one of the message, that each chart was considered as the new thread, which is excellent, because Multichart use the full capacity of the CPU computer and we still are able to share data accross chart. :wink:

Furthermore, we can see that even if Multichart is busy calculating the technical indicator, Multichart still refresh all the charts ! :D :D :D

As usual I see the excellent job of the TSSupport team :D


Emmanuel

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 27 May 2009

You are welcome Emmanuel!


Return to “MultiCharts”