... and while I'm at it, has anyone noticed any change in the behavior of IsConsole? I'm seeing it not work right when I'm running in the IDE. Trying to write a test case, but I thought I'd ask.
Or actually, I now have an app that ignores the APPTYPE directive when I run it in the IDE.
And get this, it is related to my previous question -- if I do a build, and then run the app from Explorer, then it is a console app. But if I press the run without debugging, it compiles, and ignores the compiler directive.
What are you trying?
ReplyDeleteI'm seeing strange behavior in some of our DUnit apps -- it appears to ignore the
ReplyDelete{$APPTYPE CONSOLE}
directive.
It appears that the
ReplyDelete{$APPTYPE CONSOLE}
only works in the DPR file. Is that now the case? It hasn't been in the past.
Or actually, I now have an app that ignores the APPTYPE directive when I run it in the IDE.
ReplyDeleteAnd get this, it is related to my previous question -- if I do a build, and then run the app from Explorer, then it is a console app. But if I press the run without debugging, it compiles, and ignores the compiler directive.
I think this is a bad bug.
I don't think I ever tried that anywhere else than in the .dpr, to be honest?
ReplyDeleteIIRC the IDE has a tendency to ignore that directive over the dproj setting...
ReplyDeletehttp://blog.dummzeuch.de/2014/04/10/delphi-console-applications/
ReplyDelete