SmppClient.Query crashes with exception
Posted: Wed Aug 27, 2008 5:10 pm
This code
called with small timeout after SubmitText (when QUERY_SM_RESP cotains null in field final_date), generates that exception
It's apper at real SMSC, also in SMSC simulator.
This exception crashes application
Code: Select all
try
{
QuerySmResp resp = client.Query(id, SRC_TON, SRC_NPI, SRC_ADDR);
}
catch (Exception e)
{
AddToLog(e.Message);
AddToLog(e.StackTrace);
}
Code: Select all
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at JlbOjsGLHcbdqiOUGV.aaAUfsyS0MilTbWpg9.n38v5qhZs(Int32& )
at ALT.SMS.QuerySmResp..ctor(aaAUfsyS0MilTbWpg9 buf, Int32& offset)
at ALT.SMS.SmppClient.LYfmIn7kT(MemoryStream& )
at ALT.SMS.SmppClient.vulZoWhT1(IAsyncResult )
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
This exception crashes application
