Getting unexpected crash on SubmitSM

.NET library for SMPP protocol
Locked
Alexandr.Unifun
Posts: 6
Joined: Thu Dec 05, 2013 4:51 pm

Getting unexpected crash on SubmitSM

Post by Alexandr.Unifun » Thu Dec 05, 2013 5:03 pm

Hello, I got such problem.
When Submiting message sometimes just get app.crash.
Could you help me with this?

This all info I got, but notice that problem occurs when sending at speed up to 5 msg/sec
Application: SMSGATE.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OverflowException
Stack:
at System.Convert.ToByte(Int32)
at Inetlab.SMPP.PDU.SubmitSm.ToSmppBuffer()
at Inetlab.SMPP.PDU.SubmitSm.GetBytes()
at Inetlab.SMPP.Common.SmppClientBase.SendPDUToStream(Inetlab.SMPP.PDU.SmppPDU)
at Inetlab.SMPP.Common.SmppClientBase+<>c__DisplayClass7.<SendPDU>b__5()
at Inetlab.SMPP.Common.ProducerConsumerQueue.Consume()
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Getting unexpected crash on SubmitSM

Post by alt » Thu Dec 05, 2013 6:38 pm

Hello Alexander,

It would be good to know which values have properties in SubmitSm class.

Possible small library Inetlab.Dumper could help to convert SubmitSm object to string with code

Code: Select all

string output = Inetlab.Dumper.Dump(submitSm);
What version do you use?
if you purchased source code could you give stack trace with line numbers?
Locked