Found a bug:

Set a block around the startpoinht so there is no way out!

Then start Pathfinding, you will get an exception!

Could you please fix that?

I understood it now and if you don't mind I may use your Astar.pas as pathfinding for my game in progress?

Thanks a lot!

Firle