Update.
I found it slightly puzzling why it would not work. It is not common practice, but it should work. As long as I use SetLength (), and I did, and stay within the array boundaries it should work.
So I tested the exact same code in Lazarus and FPC 2.2.1, and all is working fine.

And, I encountered another strange behaviour in Delphi 6 Personal (which I use) which costed me a day of frustration!. This was a fixed array! There should bo no problem with that.And still I got a strange , disgusting access violation error. I tested the code in FPC and it worked all fine.

Whast does this tell me. Is the Delphi 6 compiler outdated? Maybe the FPC compiler is smarter in allocating memory. Is it a good idea to update to turbo delphi or is the compiler the same?