Null Exception after upgrading to dll 2.5.8.0

Smpp v3.4 client

Moderator: alt

Locked
Ollie
Posts: 5
Joined: Tue Feb 20, 2007 12:58 pm

Null Exception after upgrading to dll 2.5.8.0

Post by Ollie » Tue Jan 20, 2009 9:22 am

Hi there,

It looks like there may be a bug in the 2.5.8.0 dll. A Null Reference Exception is thrown.

EventType clr20r3, P1 myapp.exe, P2 1.0.0.0, P3 49749486, P4 alt.sms.smppclient, P5 2.5.8.0, P6 4944c955, P7 10e, P8 3b, P9 system.nullreferenceexception, P10 NIL.

I think it might be the disconnect method (ALT.SMS.SmppClient.Disconnect).

Do you have a new version please?
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Tue Jan 20, 2009 9:48 am

Could you describe steps to reproduce this exception?
Ollie
Posts: 5
Joined: Tue Feb 20, 2007 12:58 pm

Post by Ollie » Tue Jan 20, 2009 3:09 pm

It's tricky because it doesn't happen synchronously.

"Object reference not set to an instance of an object."

Stack Trace: " at ALT.SMS.SmppClient.Disconnect()\r\n at ALT.SMS.SmppClient.nmEcN8j6R(IAsyncResult )\r\n at System.Net.LazyAsyncResult.Complete(IntPtr userToken)\r\n at System.Net.ContextAwareResult.CompleteCallback(Object state)\r\n at System.Threading.ExecutionContext.runTryCode(Object userData)\r\n at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)\r\n at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Net.ContextAwareResult.Complete(IntPtr userToken)\r\n at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)\r\n at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)\r\n at System.Threading._IOCompletionCallback.PerformIOCompletionCallb" at ALT.SMS.SmppClient.Disconnect()\r\n at ALT.SMS.SmppClient.nmEcN8j6R(IAsyncResult )\r\n at System.Net.LazyAsyncResult.Complete(IntPtr userToken)\r\n at System.Net.ContextAwareResult.CompleteCallback(Object state)\r\n at System.Threading.ExecutionContext.runTryCode(Object userData)\r\n at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)\r\n at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Net.ContextAwareResult.Complete(IntPtr userToken)\r\n at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)\r\n at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)\r\n at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)"

{System.Collections.ListDictionaryInternal}
Locked