• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 609
  • Last Modified:

Delphi: it is Release configuration but Delphi still thinks it is Debug


I have a project in Delphi 2010. It is built in Release but Delphi "thinks" that it is still Debug.

Have a look at these pictures:

What can I do?
1 Solution
you can change the compiler directive to {$IFDEF RELEASE} but if you keep it as it is, it would be a good practice in case a bug occurs in the program.
starhuAuthor Commented:
If I use {$IFDEF RELEASE}, it won't go in it either.

Delphi still thinks it is in Debug mode.
Do you have a a define like below in the code?
Probably at the top or in the first code module that gets compiled


The $IFDEF is using conditional compilation (not debug mode)
It tests if the DEBUG constant is defined.  If it is then it does the TRUE part if the if

MerijnBSr. Software EngineerCommented:
Also check if for some reason the DEBUG conditional define somehow ended up in your release configuration (it's on the compiler options page, you should see DEBUG in the debug configuration, but not in the release configuration).

If that is all ok (and you checked for {$DEFINE DEBUG} like mentioned before): did you did a _full_ recompile?
You can also try to delete the .dcu files for the units which misbehave, and compile again.
MerijnBSr. Software EngineerCommented:
For future reference, can you explain how you solved your problem?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now