Page 1 of 1

Tchart bug creating custom component

Posted: Tue Apr 05, 2016 6:43 pm
by 16577148
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.

Re: Tchart bug creating custom component

Posted: Fri Apr 08, 2016 3:23 pm
by yeray
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.