[RhinoCommon] MouseCallback override methods can crash Rhino


(Menno Deij - van Rijswijk) #1

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.


(Dale Fugier) #2

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


(Menno Deij - van Rijswijk) #3

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


(Dale Fugier) #4

Ok, I’ll add this to the pile…


(Steve Baer) #5

I agree, this will be fixed in SR10