Page 1 of 1

Getting unexpected crash on SubmitSM

Posted: Thu Dec 05, 2013 5:03 pm
by Alexandr.Unifun
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()

Re: Getting unexpected crash on SubmitSM

Posted: Thu Dec 05, 2013 6:38 pm
by alt
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?