EA Model Validation Error

150 Views Asked by At
  1. We have developed the Model Validation Rules(approximately 80 validation rules) for the EA.Elements and EA.Connectors through AddIn. When we are trying to run the validation rules from the menu Package->Model Validation->Validate Current Package, more than twice or after validating the Model if we try to add few more elements from the toolbox then EA.exe is exiting with the error message “UML has stopped working”. Please refer the images. UML Error Addin Error

    public ModelValidationRules theRules;

    public virtual void EA_OnInitializeUserRules(EA.Repository Repository) { if (Repository != null) { theRules = new ModelValidationRules();

        theRules.ConfigureCategories(Repository);
    
        theRules.ConfigureRules(Repository);
    }
    

    }

    public void EA_OnRunElementRule(EA.Repository Repository, string RuleID, EA.Element element) { theRules.RunElementRule(Repository, RuleID, element); }

  2. When I am running my Addin in Debug Mode then I am getting "Unhandled Exception" error as shown in the below figure.

Unhandled Exception Error Wntdll.pbd not loaded

1

There are 1 best solutions below

2
On

The problem is not in the code you posted. This is just the way EA reports the error, which probably happened somewhere deeper in your code.

In case of an error involving an add-in debug your code by attaching your IDE to the ea.exe process and let it break on any exceptions.