Page 1 of 1

Null PDU Error

Posted: Tue Dec 17, 2013 10:22 am
by smpp1000
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)

Re: Null PDU Error

Posted: Tue Dec 17, 2013 4:53 pm
by smpp1000
Never mind. Think I have solved the issue.