Recent

Author Topic: Detect if application is running under the IDE [SOLVED]  (Read 13357 times)

Paulo França Lacerda

  • New Member
  • *
  • Posts: 44
    • BlaisePoint Informática
Re: Detect if application is running under the IDE [SOLVED]
« Reply #15 on: October 01, 2016, 09:22:15 pm »
Have you tried running this yourself? It won't work. ExtractFileName(ParamStr(0)) returns your own project name. Even if you run it within Lazarus. Try it yourself. Please note... this is not for the lazarus.exe itself but for detecting if your own project is started from the IDE of Lazarus.

Yes, I tried and it works, but my mistake was about que topic purpose:
  • My code works if you need a function like IsDesignTime() for runtime/design-time packages. I use it in my own packages and it's fine.
  • As for the actual topic question (if app was launched from the IDE), my code does not work.
I misread the question.
Sorry.
Lazarus 1.6.0.4 on FreePascal 3.0
Windows 7 32-bit

 

TinyPortal © 2005-2018