Michalis Kamburelis wrote:
Koenraad Lelong wrote:

...
"array of byte" is a dynamic array. It's a pointer, to data and to some internal fields. "^array of byte" is a pointer to a pointer to data. You don't want this.

What you probably want is something like

type
   TByteArray = array[0..MaxInt - 1] of Byte;
   PByteArray = ^TByteArray;

Actually this should be already defined somewhere in the RTL (SysUtils unit, or maybe even in System) so you should just omit declaring PByteArray type yourself and all should be OK.

...
Thanks, that's the solution, it works now. Those types are defined in sysutils.
Regards,
Koenraad Lelong.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to