We've researched this problem and decided to post this issue to the CodeGear. This is a small snippet of the "Variables" topic from the Delphi documentation:
"If you don't explicitly initialize a global variable, the compiler initializes it to 0. Object instance data (fields) are also initialized to 0. On the Wiin32 platform, the contents of a local variable are undefined until a value is assigned to them" So, we believe that the FUnitIsFinalized variable should be initialized correctly. If not, it appears to be an IDE's bug.
However, we cannot reproduce the problem on our machines. Could you please provide us with a sample project illustrating this problem and precise steps on how to reproduce it?
Thank you for the sample project. It was very helpful.
We've posted this bug to the CodeGear, see the following report:
Though, we've fixed this problem in our dxDockControl.pas unit before the CodeGear had given their answer concerning this problem.
Huh? To be honest, I do not understand what you say.
First of all I cannot see any relation between the issue you reported to codecear and the one I reported here.
Then the current issue status is "won't fix" but if I got you correctly you already fixed the problem!?
Can you explain please? Thanks!
Your original problem is actually caused by the factors described in that CG Bug Report. As I see, they have closed it without a solution, though their response contradicts the VCL documentation. I've posted a new note to the report, and we'll wait for their clarification.
For the time being, I confirm that we've included some changes in the ExpressDocking Library implementation to workaround this problem. This is why, I think it would be OK to set the report's status to Fixed.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.