Author Topic: GetCurrentDiagram always returns nothing  (Read 486 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 5606
  • Karma: +62/-40
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: GetCurrentDiagram always returns nothing
« Reply #15 on: March 21, 2017, 10:44:19 am »
Just to be clear, we have already started EA (it may or may not have been in [X] Run as Administrator).  Then we decide to do something that requires our "Helper" in Excel.  By default, this does NOT start in  [X] Run as Administrator mode so if EA is in Administrator,  it cannot find the EA instance.  We don't start EA from the Helper.

Paolo

Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Glassboy

  • EA User
  • **
  • Posts: 778
  • Karma: +47/-51
    • View Profile
Re: GetCurrentDiagram always returns nothing
« Reply #16 on: March 21, 2017, 11:57:40 am »
Just to be clear, we have already started EA (it may or may not have been in [X] Run as Administrator).  Then we decide to do something that requires our "Helper" in Excel.  By default, this does NOT start in  [X] Run as Administrator mode so if EA is in Administrator,  it cannot find the EA instance.  We don't start EA from the Helper.

Install sysinternals process monitor (it's free) and see what actually is happening.  From what you're saying it sounds like you're trying to be malware and hijack another process, but I may not be understanding you clearly.  Process monitor should show you what is actually happening, and may even show you if you've ended up with two completely separate security contexts.