S. a arkadaşlar visual basic 2010 kullanıyorum ve Object reference not set to an instance of an object. Bu hatayı alıyorum. Clientten veri yolladıgım zaman. Kodlar Kod: Dim i As Integer Dim soket As AxMSWinsockLib. AxWinsock Dim b As String Private Sub Button1_Click Handles Button1. Click i = 1 ReDim soket soket = New AxMSWinsockLib. AxWinsock With soket . Name = i End With Me. Controls. Add(soket soket . AccessibleRole = Windows. Forms. AccessibleRole. Default soket . CausesValidation = True soket . Dock = DockStyle. None soket . Visible = True soket . Protocol = 0 soket . LocalPort = "8204" soket . RemotePort = "8204" soket . Listen AddHandler soket . ConnectionRequest, AddressOf Me. tikla End Sub Private Sub tikla b = i + 1 If soket . CtlState <> MSWinsockLib. StateConstants. sckConnected Then soket . Close End If soket . Accept ListBox1. Items. Add AddHandler soket . DataArrival, AddressOf Me. tikla2 ReDim soket soket = New AxMSWinsockLib. AxWinsock With soket . AccessibleRole = Windows. Forms. AccessibleRole. Default. Name = b End With Me. Controls. Add(soket soket . Protocol = 0 soket . LocalPort = 8204 soket . RemotePort = 8204 soket . CausesValidation = True soket . Dock = DockStyle. None soket . Visible = True soket . Listen AddHandler soket . ConnectionRequest, AddressOf Me. tikla i = i + 1 End Sub Private Sub Form1_Load Handles MyBase. Load End Sub Private Sub tikla2 Dim gelenver1i As String Dim btn As AxMSWinsockLib. AxWinsock btn = CType soket . GetData(gelenver1i) ' Hata burda End Sub End Sub