Sorry for the delay in getting back to you. I do not check this forum very often. Since then I have generated maybe 50 maps, and although sometimes they took longer than usual to complete, they eventually did.
I'm ready to conclude that this is a Vista memory management problem and not anything wrong with your script. The first incident occurred after I had terminated a BitTorrent session, which had eaten up all the available memory. It appears that Vista had not deallocated that memory and the map generator was having to fight for it and eventually appeared to Vista as if it had terminated. I gave it about 10 minutes to finish and when I checked with Task Manager, it was listed as not running.
The other occasions where the map generator takes a long time (as much as 5 minutes rather than the usual one minute or so) are following new installations of FFH2 or modmods.
I'm attaching my configuration file anyway in case that is of some value.
Finally, you probably already know this, but in the latest release of FFH2 there have been some changes to the options file because of the addition of the scenarios. There were some problems at first so Kael says he is no longer using it. However, at the time .40 came out, the FFH page from the map generator went away.