2
Vote

TIdhl7 Class in .net

description

I am using TIdhl7 component in .net. I am getting an error at the time of creating object for that compnenet.
 
My code is
 
Try
        Dim hlmessage As Indy.Sockets.HL7
        Dim portno As Integer
        Dim str As String
        str = "192.168.2.190"
        portno = 6661
        hlmessage = New HL7
        hlmessage.IPMask = str
        hlmessage.Port = UInt16.Parse(portno)
        hlmessage.Start()
        hlmessage.CommunicationMode = THL7CommunicationMode.cmSingleThread
        'hlmessage.SendMessage(rtbMessagelist.Text)
        'hlmessage.GetReply("Success")
        If hlmessage.IsServer Then
            hlmessage.SendMessage(rtbMessagelist.Text)
        End If
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    End Try
I am getting the error, in the line "hlmessage = New HL7". the error is , "Indy.Sockets.IdHL7 is broken in Indy 10 for the present"

Could you tell me what could be the problem in this.
 
Thanks
Rengarajan

comments