And another thing.... 0. A way to tell if there is enough memory to allocate an array *before* trying to do so. Slow virtual memory and the general flakeyness of PC-class machines near their memory limit make it a royal pain in the backside to write routines that will be used by mere mortals with less than a terabyte of memory installed. Time for a dandelion break... Struan