VB.NET (VS 2005) - IndexOutOf Range -- - WeOnlyDo Discussion board

VB.NET (VS 2005) - IndexOutOf Range -- (wodSSH / wodSSH.NET)

by Joel Kepaou, Saturday, October 11, 2008, 19:43 (5648 days ago)

This error make our application crashing, this happen randonmly, the application can be working for 2 days before it happens.

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ..Encrypt(Byte[] clearText, Byte[] cipherText)
at ..Send()
at ..(Object )
at ..(Object )
at System.Threading._TimerCallback.TimerCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._TimerCallback.PerformTimerCallback(Object state)

Re: VB.NET (VS 2005) - IndexOutOf Range --

by wodDamir, Saturday, October 11, 2008, 19:56 (5648 days ago) @ Joel Kepaou

Hi Joel,

This doesn't look like wodSSH error at all. This error usually occurs when you try to access non-existant index of array.

I.e: You would receive this error if you try to access index 5 of some array that has less then 5 fields.

Hope this helps.

Regards,
Damba

Re: VB.NET (VS 2005) - IndexOutOf Range --

by Joel Kepaou, Saturday, October 11, 2008, 20:38 (5647 days ago) @ wodDamir

The reason I refer it to you guys is because I do not have no Encryption function in my application, and I beleive you should have one that ressemble to this one

at ..Encrypt(Byte[] clearText, Byte[] cipherText)

Because this is where the error is showing based on the error message.

Re: VB.NET (VS 2005) - IndexOutOf Range --

by wodDamir, Saturday, October 11, 2008, 21:05 (5647 days ago) @ Joel Kepaou

Joel,

Ok, but i can't tell you why this would occur, without actually reproducing the issue on our side. What version do you have? Can you check Version property and tell me what it returns?

Regards,
Damba

Re: VB.NET (VS 2005) - IndexOutOf Range --

by Joel Kepaou, Saturday, October 11, 2008, 21:16 (5647 days ago) @ wodDamir

Version:
2.4.0

Joel,

Ok, but i can't tell you why this would occur, without actually reproducing the issue on our side. What version do you have? Can you check Version property and tell me what it returns?

Regards,
Damba

Re: VB.NET (VS 2005) - IndexOutOf Range --

by wodDamir, Saturday, October 11, 2008, 21:22 (5647 days ago) @ Joel Kepaou

Joel,

I meant the whole version. It should contain 4 numbers. The one i'm interested is the last one which should be 98.

Regards,
Damba

Re: VB.NET (VS 2005) - IndexOutOf Range --

by Joel Kepaou, Saturday, October 11, 2008, 21:30 (5647 days ago) @ wodDamir

Version: 2.4.0.98

Re: VB.NET (VS 2005) - IndexOutOf Range --

by wodDamir, Saturday, October 11, 2008, 21:45 (5647 days ago) @ Joel Kepaou

Joel,

Is there any chance we could reproduce this? Can you perhaps reproduce it with our samples?

Or, perhaps you could write us some simple sample that we could run here in order to reproduce the behaviour on our side and see what exactly happens?

Regards,
Damba