SAP Knowledge Base Article - Preview

2273429 - System.AccessViolationException in ADO.NET - SDK for SAP ASE


ADO.NET provider error System.AccessViolation Exception.
The stack shows:

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Sybase.Data.AseClient.Unmanaged.OpenConnection(IntPtr pConnection, String[] connPropNames, String[] connPropValues, Int32 size)
   at Sybase.Data.AseClient.AseConnectionImpl.Open()
   at Sybase.Data.AseClient.AseConnectionPool.GetConnection(AseConnection conn)
   at Sybase.Data.AseClient1.AseConnection.Open()
   at Sybase.Data.AseClient.AseConnection.Open()
   at TestSybase.Program.DealogicDatabase_ExecuteReder_Test(String connectionString, String sql, Int32 n) in Program.cs:line 65
   at TestSybase.Program.<>c__DisplayClass2.<RunTest1>b__0(Int32 n) in Program.cs:line 54
   at System.Threading.Tasks.Parallel.<>c__DisplayClassf`1.<ForWorker>b__c()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass11.<ExecuteSelfReplicating>b__10(Object param0)
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()



  • SAP Sybase Software Developers Kit (SDK) 15.7
  • SAP Software Developers Kit (SDK) for Adaptive Server Enterprise (ASE) 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 Visual Studio 2013


SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase Adaptive Server Enterprise 15.5 ; Sybase Software Developer Kit 15.7


.NET, VB, ASE, Connection, Provider, CR795269, CR#795269, 795269,  spinlock, ADONET,808181,CR808181,CR#808181 , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.