Forum > LCL

[SOLVED] Why a command window is displayed?

(1/1)

egsuh:
When I run a specific application a blank (black) command window is displayed, and then my main form is displayed. This does not happen with other projects. What could be a possible reason?

TRon:
I take it this issue only shows itself on windows platform ?

Make sure you have checked the win32GUI option in your projects options (config and target}.

But there are in-source compiler directives that influences that behaviour as well e.g. APPTYPE (I have no idea which one overrides: the config and target switch or apptype).

And then you have your external execution of programs from within a lazarus project that /could/ open up a terminal window.

Leledumbo:

--- Quote from: TRon on February 03, 2023, 07:42:26 am ---But there are in-source compiler directives that influences that behaviour as well e.g. APPTYPE (I have no idea which one overrides: the config and target switch or apptype).

--- End quote ---
The in-source directive takes higher precedence over anything else.

egsuh:

--- Quote ---Make sure you have checked the win32GUI option in your projects options (config and target}.
--- End quote ---

This solved the problem. Probably I might have unchecked it inadvertently. Thank you for your advice.

Navigation

[0] Message Index

Go to full version