Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: fwoolz on September 19, 2010, 11:06:26 am
-
All,
I have been working on an add-in for a while now and am tinkering with a web-based interface to EA. I am able (with the VS 2010 development sever at least) to create an instance of EA.App, start an instance of EA, and access App's members, but I can't seem to be able to get EA to close when I end a session. Neither Repository.Exit nor Project.Exit shut down the EA instance started by the web app, and EA continues to run even after the session is killed.
Note that I'm using a session variable to persist the handle to the running instance of EA.
TIA,
Fred
-
Note: I just tried the same thing but with the addition of opening a repository file and EA shuts down just fine. Is this a bug, i.e. EA.App will not respond to an exit command from the AI unless a repository is opened?
-
Fred,
There is "some" logic to that. If you haven't opened a model (or Repository) then I guess the Repository object isn't fully initialized, and won't respond properly. (although they could have made an exception for the Exit() operation, or even better provide an EA.App.Exit())
Geert