Hi, I encountered asn access violation today, and it puzzles me. It may be simple but I can't figure it out.

I have declared a Master object

Code:
Tmasterobject = object

  Sprite : array of TSprite;

End;

TIceblock = Object (Tmasterobject)

  // lots of procs, etc. here.

End;

TEnemy = Object (Tmasterobject)

  // lots of procs, etc. here.

End;
----------

Niow, when making a new Ticeblock by calling

Code:
New (Iceblock);  // pointer to iceblock if of course TIceblock object
I get an access violation.

When making the array in TMasterobject fixed (f.e. array [0..4] of TSprite, the violation is not present.

How can it be?