Author Topic: error: Exception occurred: 0xC0000005 (Access Violation)  (Read 125 times)

vosey

  • Member
  • *
  • Posts: 28
error: Exception occurred: 0xC0000005 (Access Violation)
« on: February 06, 2020, 01:58:56 AM »
I frequently experiencing a problem when using ADOLisp_ConnecttoDB.  I sometimes am unable to connect, and the following message appears at the AutoCAD Command Line : error: Exception occurred: 0xC0000005 (Access Violation), however, if I restart AutoCAD, it will then generally work fine (but not always).
         (setq sConn (strcat "Provider=Microsoft.ACE.OLEDB.16.0" ";Data Source=" fn ";;;"))
         (setq ccname (ADOLISP_ConnectToDB sconn "" ""))
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on unknown exception

vosey

  • Member
  • *
  • Posts: 28
Re: error: Exception occurred: 0xC0000005 (Access Violation)
« Reply #1 on: February 06, 2020, 02:14:00 AM »
Sorry - accidentally hit post before completing my message...   
I am frequently experiencing a problem when using ADOLisp_ConnecttoDB.  I sometimes am unable to connect, and the following message appears at the AutoCAD Command Line : error: Exception occurred: 0xC0000005 (Access Violation), however, if I restart AutoCAD, it will then generally work fine (but not always).  This is what's fed into Autocad..
         (setq sConn "Provider=Microsoft.ACE.OLEDB.16.0;Data Source=H:\\CAD\\295_PIPELINE\\VLine_2011\\program\\godata.mdb;;;")
         Command: (setq ccname (ADOLISP_ConnectToDB sconn "" ""))
                        ; error: Exception occurred: 0xC0000005 (Access Violation)
                        ; warning: unwind skipped on unknown exception
But After Restarting AutoCAD I get..
(setq sConn "Provider=Microsoft.ACE.OLEDB.16.0;Data Source=H:\\CAD\\295_PIPELINE\\VLine_2011\\program\\godata.mdb;;;")
Command: (setq ccname (ADOLISP_ConnectToDB sconn "" ""))
#<VLA-OBJECT _Connection 000002ad8a570320>

Using ODCL 9.0.3.0
AutoCAD Map 3D 2019
Windows 10

If anyone can suggest a potential problem please let me know..  Others in my Office are experiencing the same issue - Thanks.

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3010
    • Outside The Box
Re: error: Exception occurred: 0xC0000005 (Access Violation)
« Reply #2 on: February 07, 2020, 06:03:16 AM »
I suggest asking about this at The Swamp, where you're more likely to find other developers using ADO.