[fpc-devel] memory layout of variant arrays

Peter Popov ppopov99 at gmail.com
Mon Sep 22 22:26:45 CEST 2014


Hi
recently we ported a code using 4 dimensional variant array to fpc. The  
code, originally in Delphi, used VarArrayLock/Unlock to get a handle on  
the array and write directly on iy. It turned out that the layout is not  
as it is in delphi, and we could not figure out what it was.

The question is: is there a standard for the memory layout of  
multidimensional variant arrays.

As a remark, the relevant Kylix code also had bugs.

Peter Popov



More information about the fpc-devel mailing list