Public udpReceivingClient As UdpClient   
   udpReceivingClient.BeginReceive(AddressOf MT_RX_Callback, Nothing) 
throws NullReferneceException.
How to use beginreceive method in UDP ? what mistake am I making ?
   Public udpReceivingClient As UdpClient   
   udpReceivingClient.BeginReceive(AddressOf MT_RX_Callback, Nothing) 
throws NullReferneceException.
How to use beginreceive method in UDP ? what mistake am I making ?
 
    
     
    
    Is this your complete code? You haven't assigned anything to the udpReceivingClient variable, hence it causes a Null Reference when you try to use it. Additionally, the UdpClient requires some information before you can use it, such as which port to listen to.
    Public udpReceivingClient As UdpClient = New UdpClient(port_number)
Turning on Option Explicit will help you avoid these errors.
