Does MC free space after calling custom DLL?

Questions about MultiCharts and user contributed studies.
RS
Posts: 39
Joined: 28 Sep 2007

Does MC free space after calling custom DLL?

Postby RS » 12 Mar 2008

Hello Support,

Some of the DLL routines we need to call must return a string value (char *). If we allocate space on the system heap with malloc, and return a pointer to that space to MC, can we be sure that MC will, after the string has been used, free the space on the heap?

We will be calling the DLL routines a lot, and we don’t want to create a huge memory leak.

If you have any suggestions about this, please let us know.

Thanks,
Rob.

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

Postby Andrew Kirillov » 17 Mar 2008

Rob,
MC will not free the space. It is your task.


Return to “MultiCharts”