passing vnc data pointer by refrence