in reply to Re: Finding the lowest available UIDs
in thread Finding the lowest available UIDs

On OS X this gives-

Out of memory during array extend at - line 3.

Replies are listed 'Best First'.
Re^3: Finding the lowest available UIDs
by JavaFan (Canon) on Nov 12, 2008 at 12:11 UTC
    If your UIDs get too high, either add a test in the loop (no need to do anything if the UID is above 250), or use a hash instead of an array.

      I know. :) I was remarking upon the suitability of posting an open ended while statement without such a test or safety valve. In the interests of full disclosure: I brought down a production server (internal, anyway) once with a similar snippet. So the beam in my eye is substantial.