Subj : Arrays and unmanaged code To : Andy Gorman From : Anton Shepelev Date : Thu Jun 24 2021 19:20:02 Andy Gorman: AS> I am trying to return an array from my newly functioning AS> Delphi DLL. I know that I can't pass a dynamic array AS> back but I'm running into getting the array pointer set AS> to the right size (I keep getting buffer overruns). AS> Does anyone have any small code snipets that can point AS> me in the right direction? Could publish the prototype and specification for the DLL function that you are trying to write? If were doing it, I should pass the address of the first array element, because it would be also the start of the raw array data in memory. Of course, a sufficient number of elemnts would have to be pre-allolcatd in the calling code, and you can also pass that, to make sure the DLL does not try to write past the array boundary. --- * Origin: nntp://news.fidonet.fi (2:221/6.0) .