[RhinoCommon] MouseCallback override methods can crash Rhino

I just ran into a problem that when the implementation of an overridden MouseCallback method (e.g. OnMouseDown) throws an exception, that Rhino will crash. Of course, the exception was my fault :smile:

It would be nice if these the callee of these methods would protect themselves from any problems by catching exceptions. Similar to commands, they silently eat exceptions too.

If I understand correctly, your code is throwing an exception and you want our code to catch it and ignore it?

Yep. Like I said, that is also what RunCommand does. It seems better than letting Rhino crash.

Ok, I’ll add this to the pile…

I agree, this will be fixed in SR10