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

curDoc & autocad in closing status...

2 REPLIES 2
Reply
Message 1 of 3
sandor70
289 Views, 2 Replies

curDoc & autocad in closing status...

deriving a class from AcEdInputPointMonitor, in destructor,

curDoc()->inputPointManager()->removePointMonitor(this);

 

crashes when AutoCAD is in close status.

 

It's possible from an AcApDocument object know if autocad is in closing status.

 

Thnak's in advance.

Alessandro Casadei

2 REPLIES 2
Message 2 of 3
maisoui
in reply to: sandor70

Hi,

 

You need to remove your reactor in the documentToBeDestroyed(AcApDocument *) to ensure AcApDocument is still valid.

 

Regards,

--
Jonathan
Message 3 of 3
owenwengerd
in reply to: sandor70

You should always check for NULL pointers before dereferencing the return values of curDoc() and inputPointManager().

--
Owen Wengerd
ManuSoft

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

Post to forums  

Autodesk Design & Make Report

”Boost