I get my error in the doLoad procedure:
[pascal]procedure doLoad;
begin
form22.SetupMap('map.map'); <---- right about here is the error
gamestate:= gsgame;
end;[/pascal]

Then I can't go further, because my BDS2006 locks up and I have to "ctrl+alt+del" it.