Can you try to reduce the error to a simple test case? For example, find out what parameters are being passed to the 'System.Text.Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)' method, and try to build a minimal test case that repros the exception without needing to download the blowfish library.
Piers. -----Original Message----- From: matt [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:06 PM To: [EMAIL PROTECTED] Subject: [Mono-list] blowfish library hey in trying to compile Markus Hahn's implementation of blowfish in c# http://members.tripod.com/markus_hahn/software.html i get a funky error when i run one of the test exe's that come with the library. Unhandled Exception: System.ArgumentOutOfRangeException: Index and count must refer to a location within the buffer. Parameter name: bytes at System.Text.UTF8Encoding.GetCharCount(Byte[] bytes, Int32 index, Int32 count, UTF8Decoder decoder) at System.Text.UTF8Encoding.GetCharCount(Byte[] bytes, Int32 index, Int32 count) at System.Text.Encoding.GetChars(Byte[] bytes, Int32 index, Int32 count) at System.Text.Encoding.GetString(Byte[] bytes, Int32 index, Int32 count) at Blowfish_NET.BlowfishSimple.Decrypt(String sCipherText) at BlowfishTest.TestBlowfishSimple() at BlowfishTest.Main() Is there anyone out there tell me if this is an error in mcs or the blowfish library test exe. Any help would be greatly appreciated. Thanks And Great Job So Far! -matt _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
