Recent

Author Topic: [fixed] Access violation with DataPointMarksClickTool  (Read 770 times)

Muso

  • Sr. Member
  • ****
  • Posts: 356
[fixed] Access violation with DataPointMarksClickTool
« on: November 28, 2022, 05:16:26 pm »
I use the new DataPointMarksClickTool and encounter an access violation:
* take the attached example
* run the program in debug mode and Shift-left-click into the chart on a position where no data is
result: ACCESS VIOLATION in this line of TACustomSeries.pas:

Code: Pascal  [Select][+][-]
  1. lfont.Assign(Marks.LabelFont);
I could not yet find out why this happens because I use the default font settings.

Lazarus 2.3.0 (rev main-2_3-2941-g84f716a2ff)
FPC 3.2.2
x86_64-win64-win32/win64
« Last Edit: November 28, 2022, 08:19:17 pm by Muso »

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Access violation with DataPointMarksClickTool
« Reply #1 on: November 28, 2022, 06:45:23 pm »
Cannot reproduce, no exception.

Shift-left-click into the chart on a position where no data is
Are you sure that this description is correct? The MarksClickTool has ssCtrl in Shift, rather than ssShift. There are no data anywhere, there is only a ConstantLine series. So why do you emphasize the "no data"? Is this sentence simply copied from the other post?

Muso

  • Sr. Member
  • ****
  • Posts: 356
Re: Access violation with DataPointMarksClickTool
« Reply #2 on: November 28, 2022, 06:49:34 pm »
Are you sure that this description is correct? The MarksClickTool has ssCtrl in Shift, rather than ssShift. There are no data anywhere, there is only a ConstantLine series. So why do you emphasize the "no data"? Is this sentence simply copied from the other post?
Sorry, yes I meant Ctrl+Leftclick.
With empty I meant, don't click on the line.
Attached is a screencast of the access violation.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Access violation with DataPointMarksClickTool
« Reply #3 on: November 28, 2022, 07:24:04 pm »
Still cannot reproduce it. Could be that the previous commit for the other post fixes this too. Please check and report back.

Muso

  • Sr. Member
  • ****
  • Posts: 356
Re: Access violation with DataPointMarksClickTool
« Reply #4 on: November 28, 2022, 08:19:07 pm »
Still cannot reproduce it. Could be that the previous commit for the other post fixes this too. Please check and report back.
Yes, with the latest master the access violation is gone as well. many thanks!

 

TinyPortal © 2005-2018