Will Buik wrote: > I am getting the following error in libsecondlife after about 2 or 3 > minutes of use: > > System.IndexOutOfRangeException was unhandled > Message="Index was outside the bounds of the array." > Source="libsecondlife" > StackTrace: > at libsecondlife.Helpers.ZeroDecode(Byte[] src, Int32 srclen, > Byte[] dest) in ...\libsecondlife\libsecondlife-cs\Helpers.cs:line 323 > at libsecondlife.Packets.Packet.BuildPacket(Byte[] bytes, > Int32& packetEnd, Byte[] zeroBuffer) in > ...\libsecondlife\libsecondlife-cs\_Packets_.cs:line 2064 > at libsecondlife.Simulator.OnReceivedData (IAsyncResult result) > in ...\libsecondlife\libsecondlife-cs\NetworkManager.cs:line 430 > 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) > > I am using revision 677 now but I was getting the error in some > previous revisions as well. Sorry if this is the wrong place to bring > this up. > ------------------------------------------------------------------------
I committed some additional error catching facilities to ZeroDecode() that can help to catch this issue, can you run with the latest code and report back with the output? Also, what platform and OS are you on? Big/little-endian, and OSX/Linux/Windows? John Hurliman _______________________________________________ Libsecondlife-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/libsecondlife-dev
