On Wed, 16 Nov 2005 00:50:01 +0100 (CET)
[EMAIL PROTECTED] wrote:

> I want to check in my application if the IDE is running or not. The reason
> for doing that is to prevent unnescesary waiting while debugging.
> For this reason I thought of using:
> 
> if Application.ComponentState = [csDesigning]
> 
> But it does not work obviously. Any thoughts?

Application will never be in csDesigning.
csDesigning is set by the IDE on designer forms. So, this flag is only
useful for your custom components. 

Easiest way:
Call the program with a special command line parameter (Run -> Run
Parameters). For example: --debugging and test in your program 

if Application.HasOption('debugging') then ...


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to