Book a Demo

Author Topic: Reading EA Version  (Read 260 times)

M1TO

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Reading EA Version
« on: June 02, 2026, 09:28:09 pm »
Is there a way to know if the 32 bit or the 64 bit version of EA is used? With Repository.LibraryVersion() one gets only the version of EA, but not if it's x64 or x86.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13520
  • Karma: +573/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Reading EA Version
« Reply #1 on: June 02, 2026, 09:48:37 pm »
I don't think there's a direct property in the API you can query.

So you'll have to do it with a workaround. And that workaround will be different depending on the langueage you are using.

On Stackoverflow I found something like this https://stackoverflow.com/questions/7759715/check-if-my-program-is-running-in-32-bit-mode-on-a-64bit-machine-if-running-in#:~:text=You%20can%20use%20IntPtr.,if%20running%20as%2064%20bit.
Code: [Select]
private static bool Is64BitConfiguration()
{
     return System.IntPtr.Size == 8;
}

Geert