|
Reported by Björn Lindell; checked by Jordan Russell
If setting Application.Title to a previously defined string
constant, the IDE
will display error messages and fail to load the project the next time one
attempts to load it.
The error doesn't occur if you assign the string directly.
Steps to reproduce (see also included example):
- Start Delphi.
- Create a New Application
- Select "Project/View Source"
- Before the "Begin" line, enter the following
const
BUGTITLE = 'This will cause problems';
- Between the lines "Application.Initialize;" and
"Application.CreateForm(TForm1, Form1);",
enter the following:
Application.Title := BUGTITLE;
- Save all files.
- During saving, you might get "Error in module Project1: Call to
Application.CreateForm is missing
or incorrect"
- If you didn't get the error now,
close the project and try to reopen it, then you should get the error.
- I also get exceptions, for instance in "CORIDE50" and sometimes "DCLSTD"
when exiting Delphi after
causing this error.
Note:
If you instead write
Application.Title := 'This will cause problems';
which is the way Delphi puts in the application title if you specify it in
the project options,
you will not get an error, and everything works fine.
(Note from checker: Versions of Delphi prior to 5 did display an error when Application.Title was assigned a constant, but they did not generate access violations that interfered with the loading of other projects.)
Mandi Paugh adds:
Bug #645 still exists in Delphi 6 Update Pack 2. However it doesn't cause
the IDE to crash, it just issues the error and halts loading the project
(it appears to half-load it). |