Posted 15 years ago
by BLANC Stéphane
-
Staubli Robotics Suite Product Manager,
STAUBLI
Version: 2.0.0107
Platform: .NET 3.5
Environment: Windows XP (32-bit)
![Avatar](https://secure.gravatar.com/avatar/4615596a29d8a4534822ffc1b58fbb3d.jpg?s=64&d=identicon&r=g)
Hello,
This bug is easy to reproduce:
I customized a command by derivating a class from the BarButtonCommand class, in the OnClick overriden method, I throw an exception.
When the command is executed from a toolbar or a menu, the exception is caught in my Application.ThreadException handler, but when the same command is executed from the keyboard shortcut, no exception is caught !!!
This bug is easy to reproduce:
I customized a command by derivating a class from the BarButtonCommand class, in the OnClick overriden method, I throw an exception.
When the command is executed from a toolbar or a menu, the exception is caught in my Application.ThreadException handler, but when the same command is executed from the keyboard shortcut, no exception is caught !!!