move the reporting outside of the inner loop, so that it displays even if a MemoryError occurs.
move the reporting outside of the inner loop, so that it displays even if a MemoryError occurs.

timo/zasim,timo/zasim