Author Topic: EA.App and ASP.NET  (Read 2495 times)

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
EA.App and ASP.NET
« 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
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: EA.App and ASP.NET
« Reply #1 on: September 19, 2010, 11:23:54 am »
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 Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13402
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA.App and ASP.NET
« Reply #2 on: September 20, 2010, 03:29:16 pm »
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