框架版本:v4.0.30319描述:由于未处理的异常,进程终止。 [英] Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception.
问题描述
详细错误
我们的应用程序ApiServices.exe偶尔崩溃,但有以下异常。
请提供可能的解决方案
< p style ="text-autospace:none">
框架版本:v4.0.30319
描述:由于未处理的异常,该过程终止。
异常信息:System.IndexOutOfRangeException
Stack:
在System.Buffer.InternalBlockCopy(System.Array,Int32,System.Array,Int32,Int32)
在System.IO.StreamWriter.Write(Char [],Int32,Int32)
at System.IO.TextWriter + SyncTextWriter.WriteLine(System.String)
at ApiServices.Users.StreamClient.SendData()
在System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,Boolean)
在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
在System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在System.Threading.ThreadPoolWorkQueue.Dispatch()
venkatachari
嗨venkat-idarts,
>> System.IndexOutOfRangeException
这是一个非常c ommon异常。当尝试访问索引超出其边界的数组或集合的元素时抛出。
>>在ApiServices上。 Users.StreamClient.SendData()
您是否正在编写此方法?如果是,请c 检查此 方法。
最好的问候,
李旺
Detailed error
Our Application ApiServices.exe crashes once in a while with the following exception.
Please provide possible solutions
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IndexOutOfRangeException
Stack:
at System.Buffer.InternalBlockCopy(System.Array, Int32, System.Array, Int32, Int32)
at System.IO.StreamWriter.Write(Char[], Int32, Int32)
at System.IO.TextWriter+SyncTextWriter.WriteLine(System.String)
at ApiServices.Users.StreamClient.SendData()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
venkatachari
Hi venkat-idarts,
>>System.IndexOutOfRangeException
It is a very common exception. It is thrown when an attempt is made to access an element of an array or collection with an index that is outside its bounds.
>>at ApiServices.Users.StreamClient.SendData()
Is this method writen by you? If yes, please check this method.
Best Regards,
Li Wang
这篇关于框架版本:v4.0.30319描述:由于未处理的异常,进程终止。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!