Problem with "OnMouseEntered" event

Started by Emiliano, August 12, 2012, 12:57:00 AM

Previous topic - Next topic

Emiliano

Hello everyone,
I have a problem with the event "OnMouseEntered" placed on "Control Bars".

I have refined some native AutoCAD commands, eg. the command "copy".
Unfortunately when I start a command redefined, if the mouse stepped on the form is initiated the event "OnMouseEntered" causing the following error:
can not return to LISP.
Point is not valid.


and other possible side effects.  :'(

How do I prevent this?
Do you have any suggestions?
thanks

roy_043

Try adding a (princ) statement to suppress the return value from the event handler.

owenwengerd

Maybe it will help to set your form's Event Invoke property to Asynchronous.
Owen Wengerd (Outside The Box) / ManuSoft

Emiliano

Quote from: owenwengerd on August 12, 2012, 04:40:15 AM
Maybe it will help to set your form's Event Invoke property to Asynchronous.

Ok, this is the right solution!
I hope, however, does not affect other parts of my application ... :'(