I'm wondering if anyone could help me find the cause of this occasional error we get when using the library in a vb.net project. I haven't managed to replicate this in testing but occasionally when we send a large amount of message we get a null pdu exception.
Here is a simplified version of the code we are using:
Parallel.ForEach(Msgs, Sub(Msg As MT)
Dim PDUMsg As SubmitSm = New SubmitSm
PDUMsg.SourceAddr = Msg.Originator
PDUMsg.SourceAddrTon = TON
PDUMsg.SourceAddrNpi = NPI
PDUMsg.DestAddr = Msg.Recipient
PDUMsg.DestAddrTon = TON
PDUMsg.DestAddrNpi = NPI
PDUMsg.DataCoding = DataCodings.Default
PDUMsg.RegisteredDelivery = 1
If Not IsNothing(PDUMsg) Then Msgs2Send.Add(PDUMsg)
End Sub)
Client.SubmitAsync(Msgs2Send)
Null PDU Error
Re: Null PDU Error
Never mind. Think I have solved the issue.