>Thanks Paul,
>
>Yes I do initialize my buffer and length, in fact the buffer is now initialized like
>
>cBuffer = replicate(chr(0),512)
>nBuffLen = 512
>
>
>Still get the same "strange" error "Too many arguments"
>
Did you also try replacing the "long lsHndle" with a "string" instead (like I listed)?