Page 1 of 1

D2006 VCL .NET Object reference not set to instance....

Posted: Thu Jun 29, 2006 9:28 am
by 9339158
D 2006 VCL for .NET (update 2)
TeeChartPro V7.07 Delphi 2006

We're getting an immediate

"Object reference not set to an instance of an object."

When trying to use TChart. (version as above)

Easy to re-create:-
1) Drop a TChart & a Button on a VCL for .NET Form
2) Add this code to the onClick of the button:(from the help docs)
procedure TForm2.Button1Click(Sender: TObject);
var tmpLineSeries:TLineSeries;
begin
tmpLineSeries:=TLineSeries.Create(self);
Chart1.AddSeries(tmpLineSeries);
tmpLineSeries.FillSampleValues(10);
end;

Make sure your "Uses" includes these " TeeProcs, Chart, Series"

Run the app but dont click the button just yet.

a) Now left & right click on the blank TChart - No problems
b) Now click the button to populate the Series, NOW TRY to click the
left or right buttons - IMMEDIATE "Object reference not set to an instance of an object." ERROR!!!!

HELP!!
:(

I can email the entire source, with PDB if required.

Thanks in advance - We're stuck without this folks...

Jon

Posted: Thu Jun 29, 2006 10:06 am
by narcis
Hi JonM,

I'm not able ot reproduce this issue here. Can you please try if it works fine using TeeChart v7.08 for Delphi 2006 installer available at our customer area? If the problem persists please send us an example project we can run "as-is" to reproduce hte issue are at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.

Posted: Thu Jun 29, 2006 10:54 am
by 9339158
Hello NarcĂ­s,

That's done the trick nicely.

I did go to the Customer Downloads section but the first level link still said V7.07 so i didn't look any further.

Perhaps you should update this link.

Many thanks - we can breath again.

Jon
:lol:

Posted: Thu Jun 29, 2006 10:57 am
by narcis
You're welcome Jon,

I'm glad to hear that solved your issue.

The link was not updated because we only build v7.08 for BDS 2006 to solve an issue present with v7.07 for BDS 2006 installer.