Are you using pBufferOut later in main()? I think you can't pass a pointer to a member object because that object is invalid outside your function, unless ofcourse if the object isn't responsible for cleanup.Merijn
Yes I am using pBufferOut and lengthBLOB later