Hello,
I want to create a custom component using a Tchart and an TPanel. The problem is when we reopen a form that have the custom component in it. I got en error: Error creating form: Access violation at address 50990CA0 in module 'vcl320.bpl'. Read of address 00000000.
This error does not occur when I place the custom component on a new form. I happen when I reopen it !
I have include a small project to show you my problem. If I don't use a TChart (only the TPanel) I don't have the problem.
Tchart bug creating custom component
Tchart bug creating custom component
- Attachments
-
- TchartComponentBug2.zip
- (10.48 KiB) Downloaded 455 times
Re: Tchart bug creating custom component
Hello,
We've seen the customized package doesn't work well at design time. The chart in it seems to be treated as a subcomponent.
The correct way would follow a different approach:
- Right-click at project5.exe in the project manager and select "Add new -> Other -> Delphi files -> VCL Frame"
- Drop a TChart into the new TFrame.
- Right click at the frame form and select "Add To Palette" and give it a name and section.
- Back at Form9, search for your new template in the palette and drop it into your form.
This works fine for me here.
We've seen the customized package doesn't work well at design time. The chart in it seems to be treated as a subcomponent.
The correct way would follow a different approach:
- Right-click at project5.exe in the project manager and select "Add new -> Other -> Delphi files -> VCL Frame"
- Drop a TChart into the new TFrame.
- Right click at the frame form and select "Add To Palette" and give it a name and section.
- Back at Form9, search for your new template in the palette and drop it into your form.
This works fine for me here.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |