The Delphi Bug List

Entry No.
590
IDE - Form inheritance
There is a bug with form inheritance. "Error Creating Form: Access Violation at address 00000000. Read at Address 0000000." occurs when trying to inherit from a form.
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
N/AAbsentUnknownUnknownExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsUnknown
Description
Reported by Eric Wood; checked by Reinier Sterkenburg, Matthew Collins
To Duplicate:
  1. Open a new project.
  2. Add the two enclosed forms to the project.
  3. Try to do: File -> New -> Project1 tab -> select the fmBM form.
  4. Error occurs.
I have intensionally commented out practically all of the code. I believe the problem lies in the *.DFM. Please let me know if you find a fix or workaround.

Matthew Collins adds (23 Nov 2000):
I've narrowed down the bug somewhat. I don't know if it is the same bug or not, as the error message is different (you now get an exception in Coride)

The attached zip file contains the simplified forms that reproduce the problem. It looks like the Unnamed menu separator item is the cause of the problem. If you give the separator item a name (like N1) then the problem goes away. If you remove the toolbar from the second form, the problem also goes away. I also had a crash when I tried to remove all menu items except the unnamed menu separator. So it looks like that is the cause of the problem.

Latest update of this entry: 2002-04-09

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.