this is damn weird
cous when i've generated the map inside the main program it have no problem but if i use a program then save it, and then load the map in the main program it crashes, but if i recall it was no problem using the write(f,record_type) atleast in pascal worked ?!??!?!?!