the BarManager component eats my exceptions - Bars for Windows Forms Forum Cart Not logged in Log In Register Forgot Password Resend Validation E-mail Products WPF Controls WinRT Controls Silverlight Controls WinForms Controls ASP.NET Controls Code Writer App Icons Download Evaluations Freeware Online Demos Purchase Shopping Cart Price Lists Sales FAQ Support My Account Support Tickets Knowledge Base Consulting Services Community Blog Twitter Page Discussion Forums Polls WPFpedia Company About Us Contact Us Policies Our Customers Testimonials News Room Media Kit Careers Back to Forum Previous Thread Next Thread Latest Release: Discussion Forums Bars for Windows Forms the BarManager component eats my exceptions Posted 4 years ago by - .NET Software Architect, STAUBLI Version: 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 !!! Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA Stéphane, I'm not sure we have any code to catch exceptions from command handlers however it is a good idea to catch exceptions that occur during keyboard shortcuts because the keyboard shortcut hook comes from Windows API, and if an exception bubbled up in one of those handlers then the app is never notified of the exception (through Application.ThreadException) and the app crashes without a way to prevent it. It's probably because we handle keys from a Windows message hook instead of via a Form, etc. I'm not sure there is anything we can do here. You would be better off handling your exception from within the command handler. Actipro Software Support which was after the last post in this thread. Add a Comment Please log in to a validated account to post comments. Products WPF Controls WinRT Controls Silverlight Controls WinForms Controls ASP.NET Controls Code Writer App Icons Download Evaluations Freeware Online Demos Purchase Shopping Cart Price Lists Sales FAQ Support My Account Support Tickets Knowledge Base Consulting Services Community Blog Twitter Page Discussion Forums Polls WPFpedia Company About Us Our Customers Testimonials News Room Media Kit Careers Contact Us return false; type: 'POST', cache: false, async: false, else return false; return false; doctype: '', return false; type: 'POST', cache: false, async: false, else
Clker.com is owned by Rolera LLC, 2270 Route 30, Oswego, IL 60543 support\at\clker\dot\com
Comments