Anuradha wrote:
The machine i am working with is sparc sun-solaris.Can you tell me more on the alignment problem?
Yes, Sparcs have strict alignment requirements. So I suggest to either use `SizeOf (LongestInt)' instead of 2 or, as I already said, avoid the extra code entirely and just use GetMem/FreeMem (the latter with only one argument if you like) instead of getmemory/freememory (provided you don't need the extra size information for any other purpose besides freememory).
I don't get the error with the original code if i just add "packed" before the "record".
GPC generates special code for packed records which avoids the alignment problem, but it clearly less efficient.
Frank