Yes like jason said maybe map.map doesn't exist?

I think the procedure could better be something like this...

[code]
procedure doLoad(MapName: string);
begin
form22.SetupMap(MapName+'.map');
gamestate:= gsgame;
end;