Voy a dar un palo de ciego. Supongo que tanto el programa como la dll están creadas en delphi, pero ¿has añadido la unidad ShareMem a las uses?.
Cita:
|
Empezado por Ayuda de delphi
On Win32, if a DLL exports routines that pass long strings or dynamic arrays as parameters or function results (whether directly or nested in records or objects), then the DLL and its client applications (or DLLs) must all use the ShareMem unit. The same is true if one application or DLL allocates memory with New or GetMem which is deallocated by a call to Dispose or FreeMem in another module. ShareMem should always be the first unit listed in any program or library uses clause where it occurs.
|