Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How can a DOS box with Delphi 2010 be avoided?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Jun 26, 2014 1:02 PM Last Post By: karl pritchett
Guest
How can a DOS box with Delphi 2010 be avoided?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2014 9:40 AM
Hey,

this problem with the DOS box is somehow peculiar to me:

When compiling a specific program with Delphi 2010, a DOS box appears and stays.

The box has the path and name of the exe file of the program and no content.

When I close the box, the running program terminates.

On other installations of Delphi 2010 the same happens with this specific program,
all other programs I develop run normally.

Thanks in advance for any advice,
Michael
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: How can a DOS box with Delphi 2010 be avoided?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2014 10:15 AM   in response to: Guest in response to: Guest
Merschorf wrote:

When compiling a specific program with Delphi 2010, a DOS box appears
and stays.

That happens if your project is a Console app, not a GUI app.

--
Remy Lebeau (TeamB)
Guest
Re: How can a DOS box with Delphi 2010 be avoided?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2014 11:59 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Merschorf wrote:

When compiling a specific program with Delphi 2010, a DOS box appears
and stays.

That happens if your project is a Console app, not a GUI app.

--
Remy Lebeau (TeamB)

Well, my project is a GUI app and was developed from another GUI app that works fine.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: How can a DOS box with Delphi 2010 be avoided?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2014 12:46 PM   in response to: Guest in response to: Guest
Merschorf wrote:

Well, my project is a GUI app and was developed from
another GUI app that works fine.

Well, console windows don't appear for no reason. Either the app is a console
app (IOW, it says as much in the EXE file's PE header), or the app is dynamically
creating an console by calling AllocConsole() at runtime.

--
Remy Lebeau (TeamB)
karl pritchett

Posts: 15
Registered: 1/6/09
Re: How can a DOS box with Delphi 2010 be avoided?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 26, 2014 1:02 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Merschorf wrote:

Well, my project is a GUI app and was developed from
another GUI app that works fine.

Well, console windows don't appear for no reason. Either the app is a console
app (IOW, it says as much in the EXE file's PE header), or the app is dynamically
creating an console by calling AllocConsole() at runtime.

--
Remy Lebeau (TeamB)

First post says "when compiling" not when the exe's run
Sounds more like a bad build event in the project options
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02