Quantcast
Channel: Microsoft Unified Communications Managed API SDK forum
Viewing all articles
Browse latest Browse all 889

System.NullReferenceException at System.Net.Sockets.Socket.CompleteAcceptResults(System.Object)

$
0
0

Hi,
We are working on the UCMA 4.0 based basic call application.
On each call recieved we are opening a thread that performs certain operations with the call.
Each thread opens a socket and listen for the data from client. We have used asynchronous operations such as

socket1.BeginAccept(new AsyncCallback(OnConnect), null); and EndAccept for socket programming.

When the calls get terminated we used socket1.Close() and socket1.Dispose() methods to dispose socket object.
Now when we load test the application for 96 simultaneous calls after 10 to 12 hours we observed the following exception in System's Event viewer for application

Exception Info: System.NullReferenceException
Stack:
   at System.Net.Sockets.Socket.CompleteAcceptResults(System.Object)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Any help is appreciated.

Thanks
Omkar A. Lale


Viewing all articles
Browse latest Browse all 889


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>