Is lazarus trunk tachart working? lazarus / 55-TAChart ---------------------------------------------------------------------- rasberryrabbit · 2015-11-23 05:35 I got problem with lazarus trunk. When tchart drop on Form, IDE raise strange AV exception.  Is it really working recent trunk version? ---------------------------------------------------------------------- balazsszekely · 2015-11-23 05:39 I just tested with r50475 and it's working fine(no AV). Did you try a cleanup? ---------------------------------------------------------------------- rasberryrabbit · 2015-11-23 07:15 I also tried with r50475 with FPC trunk, it raise AV excetions. I tried runtime creation. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   mychart := TChart.Create(self);  mychart.Parent:=Self;  mychart.Align:=alClient;  FScale function pointer is nil and raise exception, but IDE drop still raise AV exception. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Index: comp onents/tachart/tacustomsource.pas===================================== ==============================--- components/tachart/tacustomsource.pas       (revision 50475)+++ components/tachart/tacustomsource.pas       (working copy)@@ -252,8 +252,12 @@ begin   with FIntervals do     Result := not (-      (aipUseMinLength in Options) and (AStep < FScale(MinLength)) or-      (aipUseMaxLength in Options) and (AStep > FScale(MaxLength)));+      (aipUseMinLength in Options) and+      (TIntegerTransformFunc(FScale)<>nil) and+      (AStep < FScale(MinLength)) or+      (aipUseMaxLength in Options) and+      (TIntegerTransformFunc(FScale)<>nil) and+      (AStep > FScale(MaxLength))); end;  procedure TValuesInRangeParams.RoundToImage(var AValue: Double);@@ -822,7 +826,9 @@     imagePos: Integer;   begin     with AParams do-      if aipUseMinLength in FIntervals.Options then begin+      if (aipUseMinLength in FIntervals.Options) and+      (TIntegerTransformFunc(FScale)<>nil) then+      begin         imagePos := ToImage(AValue);         Result := Abs(imagePos - prevImagePos) < FScale(FIntervals.MinLength);       end;Index: compone nts/tachart/taintervalsources.pas===================================== ==============================--- components/tachart/taintervalsources.pas    (revision 50475)+++ components/tachart/taintervalsources.pas    (working copy)@@ -195,12 +195,13 @@     // However, both minimax and maximin will be achieved on equal steps.     with AParams do       imageWidth := Abs(ToImage(FMax) - ToImage(FMin));-    if aipUseMinLength in Params.Options then+    if (aipUseMinLength in Params.Options) and (TIntegerTransformFunc(AParams.FScale)<>nil) then       len := AParams.FScale(Max(Params.MinLength, 2))     else       len := 2;     AMaxCount := Max(imageWidth div len, 2);-    if aipUseMaxLength in Params.Options then begin+    if (aipUseMaxLength in Params.Options) and (TIntegerTransformFunc(AParams.FScale)<>nil) then+    begin       len := AParams.FScale(Max(Params.MaxLength, 2));       AMinCount := Max((imageWidth + 1) div len, 2);     end ---------------------------------------------------------------------- rasberryrabbit · 2015-11-23 08:57 I made patch, more checking on method pointers in objects. bug report http://bugs.freepascal.org/view.php?id=29073 ---------------------------------------------------------------------- wp · 2015-11-25 20:28 Should work again after Jonas had fixed the originating fpc bug. ---------------------------------------------------------------------- rasberryrabbit · 2015-11-26 02:05 Thank you