Null PDU Error

.NET library for SMPP protocol
Locked
smpp1000
Posts: 5
Joined: Tue Dec 17, 2013 10:10 am

Null PDU Error

Post by smpp1000 » Tue Dec 17, 2013 10:22 am

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)
smpp1000
Posts: 5
Joined: Tue Dec 17, 2013 10:10 am

Re: Null PDU Error

Post by smpp1000 » Tue Dec 17, 2013 4:53 pm

Never mind. Think I have solved the issue.
Locked