I call the C DLL from a Delphi 2009 application, and I keep getting errors when the memory allocated by GetMem or AllocMem is transferred to the DLL. The only way to avoid these errors is to use malloc from msvcrt.dll. What is malloc, that the built-in memory functions are not, and how can I make the built-in work? I really don't like going around the built-in memory manager.
user207886
source
share