Board index » delphi » Detect that app was started from IDE

Detect that app was started from IDE


2004-01-15 06:14:30 PM
delphi90
How can I find out that my application was started by the IDE?
I was thinking for example of DebugHook? But that would include
all kind of de{*word*81}s, not only the Delphi de{*word*81}.
Looking for a running delphi application via FindWindow is close
to what I am looking for but not exactly, because Delphi can be running
though I didnt start my app via IDE.
Any idea?
--Heiko
 
 

Re:Detect that app was started from IDE

Download the Jedi JCL, it has a function called "IsDe{*word*81}Attached".
HTH
Jens
--
____________________________________________________________
email (delete all digits, please): XXXX@XXXXX.COM
 

Re:Detect that app was started from IDE

Not sure what you're actually wanting to achieve but you could simply set a
parameter string in the IDE run ... that is what I do sometimes when
debugging apps that behave differently whilst running in the IDE.
Andrew
"Heiko Tappe" <XXXX@XXXXX.COM>writes
Quote
How can I find out that my application was started by the IDE?
I was thinking for example of DebugHook? But that would include
all kind of de{*word*81}s, not only the Delphi de{*word*81}.
Looking for a running delphi application via FindWindow is close
to what I am looking for but not exactly, because Delphi can be running
though I didnt start my app via IDE.

Any idea?

--Heiko


 

Re:Detect that app was started from IDE

Quote
Download the Jedi JCL, it has a function called "IsDe{*word*81}Attached".
Yes, I know.
But I want to differentiate between the IDE-De{*word*81} and other de{*word*81}s.
--Heiko
 

Re:Detect that app was started from IDE

Quote
Not sure what you're actually wanting to achieve but you could simply set
a
parameter string in the IDE run ... that is what I do sometimes when
debugging apps that behave differently whilst running in the IDE.
Sounds goods. But it should be something that I don't have to set
explicitly.
--Heiko
 

Re:Detect that app was started from IDE

Heiko Tappe wrote on Thu, 15 Jan 2004 14:39:35 +0100 ...
Quote
>Download the Jedi JCL, it has a function called "IsDe{*word*81}Attached".

Yes, I know.
But I want to differentiate between the IDE-De{*word*81} and other de{*word*81}s.
Check the value of DebugHook. It should be non-zero when debugging under
the IDE.
Marc Rohloff
marc rohloff at bigfoot dot com
 

Re:Detect that app was started from IDE

Quote
Check the value of DebugHook. It should be non-zero when debugging under
the IDE.
But it also seems to be non-zero when I run my app with a different
de{*word*81}!?
--Heiko