Ok;
This is I understand;
if I use
getmem, new, allocmem, this is from the class? and the class gets from borlndmm.dll (if talking about delphi).
and if talking about lazarus?, getmem, new, allocmem is from the lazarus class also, on which memory are shared from the class.
If I use the "unit cmem" therefore I am using my own memory manager and not from the class.
Correct me if I'm wrong with that, please.
the trick is to have exe and dll use the same memory manager (the same one, not the identical copy)
BUT, I am using an external .dll on which the .dll is from another programmer that I test.
I am using the .dll to get an important function from it, then attached to my code.
And that sounds exe and dll do not use same memory, even if I use the "unit cmem". ?
Thanks
