Crash when using tfrxchartobject
If I compile frdemo I can work without problems with the tfrxchartobject in the chartdemo.
However if I include this unit in my project, and go to the editor and choose add tfrxchartobject I get a GPF
Ergo I use the same unit, something in my project must make war with that object. I debugged a bit and find this out:
in TfrxChartView.CreateChart
FChart := TChart.Create(Self); is called
this gives a TfrxChartView.Notification opinsert
immediately a notify event opremove is followed
which leads to the gpf because Fseriesdata isn't yet initialized in the notification opremove event ( for i := 0 to FSeriesData.Count - 1 do)
Any thoughts about what could be going on here..?
However if I include this unit in my project, and go to the editor and choose add tfrxchartobject I get a GPF
Ergo I use the same unit, something in my project must make war with that object. I debugged a bit and find this out:
in TfrxChartView.CreateChart
FChart := TChart.Create(Self); is called
this gives a TfrxChartView.Notification opinsert
immediately a notify event opremove is followed
which leads to the gpf because Fseriesdata isn't yet initialized in the notification opremove event ( for i := 0 to FSeriesData.Count - 1 do)
Any thoughts about what could be going on here..?
Comments
I use a resourcestring translator (Polyglot) and the reources where out of sync. The thing was translating fastreport elementnames so it could not create the elements etc... Just wonder, but no lust to check it out now, if and if why the elements in fastrep are defined by resourcestrings.