SAP Knowledge Base Article - Preview

2169863 - Calling Cancel() without command throws AccessViolation - SDK for SAP ASE


  • 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.CancelCommand(IntPtr hCommand)
       at Sybase.Data.AseClient.AseCommand.Cancel()
       at TestRole.Program.Main(String[] args)



  • ASE 15.7+
  • SAP Sybase Software Developer Kit (SDK) 15.7 SP133
  • 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 )
  • Microsoft Visul Studio  2012/2013
  • Winx64


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


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 ONE Support launchpad (Login required).

Search for additional results

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