Saving chart with PartnerAxis set = Stack Overflow

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
roumen
Newbie
Newbie
Posts: 3
Joined: Fri Dec 15, 2017 12:00 am

Saving chart with PartnerAxis set = Stack Overflow

Post by roumen » Mon Jan 29, 2018 10:33 am

VCL/FMX TeeChart ver 2017.22.170619, Delphi 10.2 Version 25.0.27659.1188

If I define 2 custom axes (horizontal and vertical) and set each to be partner axis for the other:

Code: Select all

  ax:= TChartAxis.Create(master);
  ax.Horizontal:= TRUE;
  ax.StartPosition:= 25;
  ax.EndPosition:= 75;
  ax.PositionPercent:= 25;
  ax.Title.Text:= 'Custom Horizontal';
  hax:= ax;
  ax:= TChartAxis.Create(master);
  ax.StartPosition:= 25;
  ax.EndPosition:= 75;
  ax.PositionPercent:= 25;
  ax.Title.Text:= 'Custom Vertical';
{ this causes stack overflow in syste.UnicodeFromLocakleChars: }
  ax.PartnerAxis:= hax;
  ax.UsePartnerAxis:= TRUE;
  hax.PartnerAxis:= ax;
  hax.UsePartnerAxis:= TRUE;
{}
and try to save the chart, I get stack overflow in

Code: Select all

function UnicodeFromLocaleChars(CodePage, Flags: Cardinal; LocaleStr: _PAnsiChr;
  LocaleStrLen: Integer; UnicodeStr: PWideChar; UnicodeStrLen: Integer): Integer; overload;
{$IFDEF MSWINDOWS}
begin
  Result := MultiByteToWideChar(CodePage, Flags, LocaleStr, LocaleStrLen, UnicodeStr, UnicodeStrLen);
end;
{$ENDIF MSWINDOWS}
I need PartnerAxis in order to make these custom axes movable by the mouse.
Am I doing something wrong? Any workaround?

Roumen
Attachments
SS_IDE.png
Screen shot of the IDE
SS_IDE.png (127.59 KiB) Viewed 7038 times
_Save.zip
Simple project demonstrating this problem and problem when chart is duplicated
(53.98 KiB) Downloaded 748 times

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

Re: Saving chart with PartnerAxis set = Stack Overflow

Post by Yeray » Mon Jan 29, 2018 2:14 pm

Hello,

Thanks to your report I could reproduce the problem so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1979
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