AutoCAD 2015/ 2016 crash

AutoCAD 2015/ 2016 crash

mconficconi
Advocate Advocate
1,728 Views
8 Replies
Message 1 of 9

AutoCAD 2015/ 2016 crash

mconficconi
Advocate
Advocate

My customers that have passed to the latest autocad version, have found a crash, using my application.

I'm not sure where the problem is, but the previous autcad version do not crash (from 2007 throw 2014).

 

I'll send a video to show the problem.

My application using the AdDbEntityReactor::modified method, to update the drawing

 

Best regards

Massimo Conficconi

 

0 Likes
Accepted solutions (1)
1,729 Views
8 Replies
Replies (8)
Message 2 of 9

OysteinW
Advocate
Advocate

Try adding Autodesk symbol server under Tools/Options/Debugging/Symbols in Visual Studio:

 

http://symbols.autodesk.com/symbols

 

-This will give you a more readable call stack when the crash occurs, and it could prove helpfull in figuring out the problem.

 

 

Looking at the video I suspect you've run into the same problem as I have with 2015. If an object is selected (grips active) when it is erased from the drawing, AutoCAD will crash unless the object is removed from the pickfirst selection set. This is a bug introduced in 2015 which affected several of our applications. 

 

 

0 Likes
Message 3 of 9

mconficconi
Advocate
Advocate

Unfortunatly with your link, i found this messages.....   403 - Forbidden: Access is denied.

0 Likes
Message 4 of 9

OysteinW
Advocate
Advocate

 

Add the url to Visual Studio debugging options:

 

2015-07-27_12-36-51.png

0 Likes
Message 5 of 9

OysteinW
Advocate
Advocate

Regarding the erased entity suspicion, here's someone with similar problem:

 

http://forums.autodesk.com/t5/objectarx/fatal-crash-erasing-entity-following-grip-stretch-autocad-20...

0 Likes
Message 6 of 9

mconficconi
Advocate
Advocate

I'm sending you the call stack from the crash, using the debug symbol.

 

In the post attached, autodaug propose a solution, but how can i remove an entity from the pickfirst selection set, from a reactor?

 

sorry for my english

 

I'll hope that can be useful

0 Likes
Message 7 of 9

OysteinW
Advocate
Advocate

I guess you can use a combination of acedSSGetFirst and acedSSSetFirst to acheive this, but you can probably also modify your code in the AdDbEntityReactor::modified() method to avoid using erase() on any of the objects if that is what is happening. 

 

0 Likes
Message 8 of 9

mconficconi
Advocate
Advocate

Unfortunatly i need to erase some entities to obtain a correct visualization, this bug is introduced from 2015, my customer that have not upgraded to 2015, but use 2014, do not have this problem.

0 Likes
Message 9 of 9

Virupaksha_aithal
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I think you can still erase the object, but try removing the object from pickfirst selection set before erasing the object (acedSSSetFirst(NULL,NULL))



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes