Kent,
I received the same error when the parameter passed ($ElementArray) is not an array. R U sure that the array is an array? I am at home now and
don't have a NT4 Domain to test it on right now.