On 12/5/06, John Hurliman <[EMAIL PROTECTED]> wrote:
> 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
>
I am now getting a new error with the new revision (685).
I am using Windows Vista and compiling with Visual Studio 2005 (8.0.50727.42).
I don't know if this could have a role in it but the program uses
several SecondLife clients at once and I have little bandwidth.
libsecondlife.Packets.MalformedDataException was unhandled
Message="Error in the application."
Source="libsecondlife"
StackTrace:
at libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock..ctor(Byte[]
bytes, Int32& i) in C:\Users\Will
Buik\Desktop\libsecondlife\libsecondlife-cs\_Packets_.cs:line 90070
at libsecondlife.Packets.ObjectUpdatePacket..ctor(Header head,
Byte[] bytes, Int32& i) in C:\Users\Will
Buik\Desktop\libsecondlife\libsecondlife-cs\_Packets_.cs:line 90309
at libsecondlife.Packets.Packet.BuildPacket(Byte[] bytes,
Int32& packetEnd, Byte[] zeroBuffer) in C:\Users\Will
Buik\Desktop\libsecondlife\libsecondlife-cs\_Packets_.cs:line 2618
at libsecondlife.Simulator.OnReceivedData(IAsyncResult result)
in C:\Users\Will
Buik\Desktop\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)
_______________________________________________
Libsecondlife-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/libsecondlife-dev