Symptom
Cancelling command and then trying to close the data reader it crashes:
System.AccessViolationException "Attempted to read or write protected memory."
at Sybase.Data.AseClient.Unmanaged.CMD_PerformGetNextResultSet(IntPtr pCommand, IntPtr& ppResultSet, Int32& hasNext, Int32& curPos, Int32& IsSamePdu, Byte& rmtType)
at Sybase.Data.AseClient.AseDataReader.RetrieveNextResult()
at Sybase.Data.AseClient.AseDataReader.GetNextResult(Boolean isNeedProcessOutParams)
at Sybase.Data.AseClient.AseDataReader.NextResult()
at Sybase.Data.AseClient.AseDataReader.CloseUrsHandle()
at Sybase.Data.AseClient.AseDataReader.Close()
at Simple.Form1.btnConnect_Click(Object sender, EventArgs e) in
Form1.cs:line 299
Read more...
Environment
- SAP Sybase Software Developer Kit (SDK) 15.7
- SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0
- Adaptive Server Enterprise ADO.NET Data Provider
- 3.5 Provider ( Sybase.AdoNet35.AseClient.dll )
- 4.0 Provider ( Sybase.AdoNet4.AseClient.dll )
- 4.5 Provider ( Sybase.AdoNet45.AseClient.dll )
- Microsoft Windows x64 (64-bit)
- .Net
Product
Keywords
CR817922, CR#817922, CR# 817922, access, violation , 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.