Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Delphi Dienstanwendungen - führt $APPTYPE CONSOLE zu Fehler? (https://www.delphipraxis.net/171861-delphi-dienstanwendungen-fuehrt-%24apptype-console-zu-fehler.html)

mjustin 29. Nov 2012 08:12

Delphi Dienstanwendungen - führt $APPTYPE CONSOLE zu Fehler?
 
Hallo,

In diesem Stackoverflow Frage wird am Rande ein Problem mit Windows Diensten kurz angesprochen: Delphi Windows Service with Console App Stdout Stream Included

Zitat:

... to get a writeln statement to work, typically I would need the directive {$APPTYPE CONSOLE} in the project file which then breaks the service app Destroy event.
Dass ein {$APPTYPE CONSOLE} in einem in Delphi geschriebenen Dienst das Destroy Event des Dienstes stört hatte ich bisher nicht gewusst.

Ist das bekannt und in neueren Delphi Versionen leicht reproduczierbar? (Windows wird sicher nicht auf das Delphi Flag "IsConsole" in der Unit System zugreifen, also tippe ich auf einen Delphi Bug.)


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:57 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz