Symptom
Ado.net application crashes one of these stack traces:
- System.ArgumentOutOfRangeException:Count must be positive and count must refer to a location within the string/array/collection.
Parameter name:count
atSystem.Array.IndexOf(Array array, Object value, Int32 startIndex, Int32count)
at System.Collections.ArrayList.IndexOf(Object value)
at System.Collections.ArrayList.Remove(Object obj)
at Sybase.Data.AseClient1.AseConnection.UnregisterCommand(AseCommand command)
at Sybase.Data.AseClient.AseConnection.UnregisterCommand(AseCommand command)
at Sybase.Data.AseClient.AseDataReader.DropCommand(Boolean isNeedUnregCmd)
at Sybase.Data.AseClient.AseDataReader.Close()
at System.Data.Common.DbDataReader.Dispose(Boolean disposing)
at System.Data.Common.DbDataReader.Dispose() -
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.ArrayList.Add(Object value)
at Sybase.Data.AseClient1.AseConnection.RegisterCommand(AseCommand command)
at Sybase.Data.AseClient.AseConnection.RegisterCommand(AseCommand command)
at Sybase.Data.AseClient1.AseCommand._ExecuteReader(CommandBehavior commandBehavior)
at Sybase.Data.AseClient1.AseCommand.ExecuteReader(CommandBehavior commandBehavior)
at Sybase.Data.AseClient.AseCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.ExecuteReader()
Read more...
Environment
- SAP Sybase Software Developers KIT (SDK) 15.0
- SAP Sybase Software Developers KIT (SDK) 15.5
- SAP Sybase Software Developers KIT (SDK) 15.7 SP138
- SAP Software Developers Kit (SDK) for Adaptive Server Enterprise (ASE) 16.0 SP02 PL04
- Adaptive Server Enterprise ADO.NET Data Provider
- 1.15 Provider ( Sybase.AdoNet.AseClient.dll )
- 2.0 Provider ( Sybase.AdoNet2.AseClient.dll )
- 3.5 Provider ( Sybase.AdoNet35.AseClient.dll )
- 4.0 Provider ( Sybase.AdoNet4.AseClient.dll )
- 4.5 Provider ( Sybase.AdoNet45.AseClient.dll )
- Microsoft Windows x86 (32-bit)
- Microsoft Windows x64 (64-bit)
- Win 7/8/10, 2008/2008 R2, 2012/2012 R2
Product
Keywords
"SAP ASE", Developer's, ado.net, .net, crash, dump, stacktrace, stack, trace, arraylist, thread, threaded, multithread, connection, high load, CR#802647, CR802647, 802647 , KBA , BC-SYB-SDK , SDK , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview