I have Delphi 11.2, Patch 1 running on Windows 11.
This is my first post here so I hope someone can help.
I want to create a new component that is a descendant of another component that is already installed. But I keep getting errors.
As an example, here is what happens when I try to create a descendant of TButton...
I did this:
- Component | New Component
- VCL for Delphi Win32
- select 'TButton' in list
- Class Name = 'TMyButton'
- Palette Page = 'Samples'
- Unit Name = 'E:\MyButton.pas'
- Selected 'Install to New Package'
- Package Name = 'e:\MyOwnButton.dpk'
- Click Finish.
Got this error:
---------------------------
Error
---------------------------
Registration procedure, Mybutton.Register in package C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\MyOwnButton.bpl raised exception class EAccessViolation: Access violation at address 67127F63 in module 'rtl280.bpl'. Read of address 00000008.
---------------------------
OK
---------------------------
So, then I tried this:
- Component | Install Packages
- Add...
- Browsed to select C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\MyOwnButton.bpl
Got this error:
---------------------------
MyOwnButton - Delphi 11 - MyButton [Built]
---------------------------
Registration procedure, Mybutton.Register in package C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\MyOwnButton.bpl raised exception class EAccessViolation: Access violation at address 67127F63 in module 'rtl280.bpl'. Read of address 00000008.
---------------------------
OK
---------------------------
I am able to create TMyButton on Delphi 10.4 running on Windows 10 - so is there a bug in Delphi 11.2, am I doing something wrong or is there some other explanation?