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

Crash on select of custom entity

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
182 Views, 0 Replies

Crash on select of custom entity

Hello,

I've written a custom class that seems to behave perfectly well when I
create and use it. I can save drawings containing it, re-open them, and
still have no problem. Selecting, copying, moving, etc. all seem to work
fine as well. So far so good.

Now just for fun, I use wblock to create a new file containing the object,
and open the new drawing with no problems. The object is there and looks
fine. However, as soon as I select the object, I get an Access Violation
crash and AutoCAD goes down. Stepping through with the debugger, the last
thing I see is getGripPoints() being called, appending the correct points,
and returning eOk.

I should also mention that if I do a copy (without pickfirst) I don't get a
crash, but I also don't get a copy. Move (again, without pickfirst)
similarly fails to move. If I draw a line and have osnap on, my osnap
points pop up perfectly too. It appears only to happen when I try to get
grip points...

Any thoughts?

Chris
0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report

”Boost