ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAD crash when setCurDocument(pDoc)

0 REPLIES 0
Reply
Message 1 of 1
27925916
291 Views, 0 Replies

CAD crash when setCurDocument(pDoc)

when I write the ARX project depends on the library compiled by VS2019, I use code below,it will crash on code"SetCurDocument"  only on CAD 2017 and later , it works ok on CAD2016 and older.

crash tooltip: "Exception thrown at 0x00007FF77A4AD148 (in acad.exe): 0xC0000005: An access violation occurred while reading location 0x0000000000000010. " 

 

 

AcApDocumentIterator  *pDocItr = acDocManagerPtr()->newAcApDocumentIterator();
for (; !pDocItr->done(); pDocItr->step())
{
 AcApDocument *pDoc = pDocItr->document();
 acDocManager->setCurDocument(pDoc);// CAD crash on this code line ""
XXX....
}

 

 

 

Labels (1)
  • ARX
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report