Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Tool Palette    [ Add a report in this area ]  
Report #:  32042   Status: Open
'Delphi Projects | Inheritable Items' Category isn't cleared after closing your project
Project:  Delphi Build #:  10.0.2288.42451
Version:    10.0 Submitted By:   Stephane Wierzbicki
Report Type:  Minor failure / Design problem Date Reported:  8/3/2006 12:12:30 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   238804
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
4.00 out of 5
Total Votes: None
Description
After closing my project, the 'Delphi Projects | Inheritable Items' Category is still displaying unit of the previously opened project.

Double clicking on any of the Inheritable Items will lead to this error :

Error Creating Form : Ancestor for 'TForm1' not found

I'm running under Windows XP SP2
BDS 2006 Win32 SP2 + Hotfixes 1 to 6

Experts installed :
Gexperts 1.30 Beta 4
Delphi Speed Up 1.96
Steps to Reproduce:
Start BDS 2006 Win32 mode
Create a new project
Close your project (saving or not the project wont change anything)

On the Tool Palette, select the 'Delphi Projects | Inheritable Items' category.
You will find a Form1 items which shouldn't be there !

Double click on it :


Error Creating Form : Ancestor for 'TForm1' not found

Ps : Close All menu Item is still enable where it should be greyed !
Workarounds
None
Attachment
None
Comments

Leo Siefert at 8/3/2006 8:08:30 AM -
I cannot produce this error at all from your steps.  When I close the project the Delphi Projects | Inheritable Items category is removed from the Tool Palette entirely - in fact the tool palette shows controls instead of project and file creation experts unless I open a different project. (I think I will be filing a QC report on this, which appears to be a bug.)

If I do not close the project, however, and simply close the main form without saving, then the expert remains in the Inheritable Items section of the Tool Palette and raises an error when applied.

If the file is saved, then the expert works without error, but the new file it creates does not contain the uses directive for the main unit, so the reference to the parent form is underlined as an error in the code until the file is saved - saving generates the needed uses directive.

I suspect that you may be using File | Close and assuming that it closes the project - it closes only the current file open in the editor - only File | Close All actually closes the project and does not open another.

I suggest that you cahnge the steps to better reflect this.

Stephane Wierzbicki at 8/3/2006 12:14:04 PM -
This is strange since I can reproduce it on my home computer with exactly the same steps.
I'm using the defaut layout (embeded) and have disable together support + all tool tip / error insigh feature

Leo Siefert at 8/3/2006 1:37:35 PM -
Ok.  Just tried the same thing again and now I get the results you indicate. I cna't figure out anything that I am doing different than I was this morning except that I tested a number of other QC reports before trying yours this morning - maybe something else got set differently in the process.

Stephane Wierzbicki at 8/4/2006 6:35:45 AM -
Maybe, but it is reproducible and that's a good point

Daniel Wischnewski at 8/6/2006 1:21:52 AM -
Reproduced and promoted.

Server Response from: ETNACODE01