Why does the Delphi compiler create a file called "c" during the build of a particular project?

When I create my project and the main form is open (quite large, dozens of components of all kinds), the build process creates a file called "c" in the project folder.
The file is empty.
If I close the main form in the IDE, the build process does not create this file.

How can I find out what causes this, and why does the compiler care about which files are open in the IDE when the build starts?

+6
delphi delphi-2009
source share
2 answers

If you have installed CnWizard, then this tool creates empty files c. As for the homepage, this has already been fixed in beta. You must wait until this version is released.

CnWizard Forum

+12
source share

I think that one of your components (possibly third-party) has its own stream code (defineproperties, etc.) and generates this file as a non-standard tempfile.

If the form is open, the file is mutated, so during compilation the form is transferred from .dfm to .res and the development time code of this component that creates the file passes.

The easiest way to understand is to start removing the components in the copy of the project until the behavior disappears. Then try digging out the appropriate development-time code if you can find the culprit.

+2
source share

All Articles