I am getting access violations (Eaccessviolation):

when using

Code:
Mainfm.dxspriteengine1.Engine.Clear;
TBall1Sprite.create(Mainfm.dxspriteengine1.engine);
Where clear supposedly kills off all sprites. It happens much more frequently if there is a scrolling background to be killed then recreated (perhaps because for me that means an extra 3 sprites).

Any ideas what is wrong? It doesnt do it each time. Seems to be pick and choose when it does it but it is always at this point wheer it fails.

The cpu window shows it is always hanging 00489060 Tsprite.getcount

[/code]