SAP Knowledge Base Article - Preview

2874341 - ADO.NET: System.AccessViolationException when using AseBulkCopy

Symptom

  • After applying SAP ASE SDK 16.0 SP03 PL07 and performing bulk insert via AseBulkCopy, bcp.WriteToServer is throwing the following exception:
    • 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.GetDatabase(IntPtr ConnectionHandle, Char[] database, Int32 databaseCapacity)
    • at Sybase.Data.AseClient.AseConnectionImpl.GetDatabase()
    • at Sybase.Data.AseClient1.AseConnection.get_Database()
    • at Sybase.Data.AseClient.AseBulkCopy.set_DestinationTableName(String value)


Read more...

Environment

  • SAP ASE Adaptive Server Enterprise SDK 16 SP03 PL07
  • Adaptive Server Enterprise ADO.NET Dat Provider
    • 4.0 Provider ( Sybase.AdoNet4.AseClient.dll )
    • 4.5 Provider ( Sybase.AdoNet45.AseClient.dll )

Product

SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0

Keywords

820723,CR#820723,CR 820723,System.AccessViolationException, GetDatabase(),AccessViolation , KBA , BC-SYB-SDK , SDK , Bug Filed

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.