Book a Demo

Author Topic: Running EA.exe process after Repository.Exit()  (Read 4830 times)

themiyac

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Running EA.exe process after Repository.Exit()
« on: June 18, 2015, 02:25:42 am »
I am using the Java Api to explore a EA model that I have created.
I initialized the repository and opened a file, but then when I exit the repository a process of EA is still running/allocated to system memory in Windows Task Manager. The size of this allocation is 64,552 K every time I initialize and close the repository using Repository.Exit(). I was wondering if there is a way in the API to stop this process.
Thanks

Bogdan Panait

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Running EA.exe process after Repository.Exit()
« Reply #1 on: June 19, 2015, 06:42:44 pm »
Hi,

I am also interested in this topic. So far, I didn't manage to find a solution in the API so I was forced to check which new EA.exe process has shown up on closing the repository through the Runtime.getRuntime().exec(cmd) interface.
It's an ugly solution, but does the job.
I'd really appreciate if someone could help with a more professional solution.

Thank you! :)
« Last Edit: June 19, 2015, 06:43:08 pm by bogdan.panait »

Marc Dv.

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Running EA.exe process after Repository.Exit()
« Reply #2 on: August 03, 2015, 06:09:37 pm »
Do you call Repository.CloseFile() before calling Repository.Exit()?

I run into a similar issue. Then I changed my code to first call CloseFile() on the repository object and then Exit().

Now there are no more Running EA.exe. ;D

themiyac

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Running EA.exe process after Repository.Exit()
« Reply #3 on: August 05, 2015, 11:35:17 pm »
Nice :D