Tchart bug creating custom component

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
zyma
Newbie
Newbie
Posts: 1
Joined: Wed Dec 09, 2015 12:00 am

Tchart bug creating custom component

Post by zyma » Tue Apr 05, 2016 6:43 pm

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.
Attachments
TchartComponentBug2.zip
(10.48 KiB) Downloaded 437 times

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Tchart bug creating custom component

Post by Yeray » Fri Apr 08, 2016 3:23 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply