Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Debug the attached project and execute the Action from the Tools category:

                                    [C#]
                                    using System; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Actions; namespace T499468.Module.Win.Controllers { public class T499468 : WindowController { public T499468() { var popupWindowShowAction = new PopupWindowShowAction(this, "T499468", "Tools"); popupWindowShowAction.CustomizePopupWindowParams += popupWindowShowAction1_CustomizePopupWindowParams; } private void popupWindowShowAction1_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { throw new Exception("T499468"); } } }

                                    This is specific to the debug mode only; everything operates correctly when running in Release mode without the attached debugger.

                                1 Solution

                                Creation Date Rating Importance Sort by
                                0
                                Show all comments
                                • Nate Laff 06.19.2017
                                  This still seems to be an issue, or at least it's just moved.

                                  Create a BO with a RuleRequiredField
                                  Click the New action to create a new object
                                  Without making changes, close the detail view, when prompted to save changes, say yes

                                  The Validation exception will occur, then terminate the application.
                                • Thanks for your update, Nate. We'll check this scenario and inform you of our results.
                                  Would you please also specify the exact XAF version you tested?

                                • Nate Laff 06.20.2017
                                  16.2.7 official
                                • Nate Laff 06.20.2017
                                  And 17.1.3 has the same issue
                                • Thanks, Nate!
                                • Dan (DevExpress) 06.21.2017

                                  Thank you for contacting us.
                                  Our attempts to reproduce this problem were unsuccessful.
                                  Would you please review the attached project and reproduce the issue with it?

                                • Nate Laff 06.28.2017
                                  Working on repro project. It's been... challenging.
                                • OK. We look forward to hearing from you.
                                • Nate Laff 07.03.2017
                                  Reproduced!

                                  Oddly, it's caused by another unrelated class. But seems to conflict somehow? Maybe you could tell me what's up?

                                  In Program.cs the call to TestClass.Instance.MyProperty is what will eventually cause this. More specifically, it's that I create and dispose of a WebBrowser control in this class to get the version.




                                • Dan (DevExpress) 07.04.2017

                                  Thank you for the update.
                                  I have investigated this scenario and found that it is caused by the Visual Studio and .NET Framework specifics.
                                  The Application.ThreadException event handler is not called if a Control object was created before a handler is added to this event:

                                  [C#]
                                  static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Control c = new Control(); //Comment Me Application.ThreadException += Application_ThreadException; Application.Run(new Form1()); }

                                  See the attached project for more details.

                                • Nate Laff 07.04.2017
                                  It would of course be something stupid wouldn't it :) Thanks, Dan!

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2017 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners