* If I use any other char instead of chr(0), it works OK. cStr = replicate( chr(0), 100 ) thisform.olecontrol1.SendData(createbinary(cStr)) local lStart lStart = seconds() priv ctulem ctulem = '' do while seconds()-lStart<20 and empty(ctulem) and ; thisform.OLEControl1.state!=9 and inkey(0.5)!=27 if this.olecontrol1.state=8 messagebox( 'Connection closed' ) return .f. endif ctulem = '' thisform.OLEControl1.GetData( @ctulem ) * I tried also the follwoing code: * thisform.OLEControl1.GetData( @ctulem, 8192+17, 200 ) enddo