And another AV, TTMSFMXGrid 2.2.2.9

Hi, just found another ugly AV within TTMSFMXGrid.
Reproducable steps:

1. New Project + TTFMSFMXGrid
2. Insert TStyleBook with UseStyleManager := True and load any style. Connect with Form1.
3. set 1 cell with combobox or comboedit and set some strings within ComboItems
4. Event OnCellComboCloseUp: Fill another cell with Itemindex from ComboItems or whatever

Everything works until......you close Application and find EInvalidPointer + AV
Run Application with DebugMode.
It won?t happen if you have no Style activated !

Problem seems to be within FreeStyle.

Thanks for fixing!
Regards

Hi,

We have followed the steps you have explained but are not able to reproduce this here, 
can you send us a sample that is able to reproduce this issue?

Kind Regards, 
Pieter

Hi,

see following code. (Really easy to reproduce)

1. Use TStylebook and load style. Set UseStyleManager := True
2. Form1.Stylebook := Stylebook1
3. set in one Column: Editor := etCombobox or etComboEdit
4. Start app (F9/Debug Mode)
5. Close app
-> Runtime Error (if you just close app and have done nothing) or EInvalidPointer (if you edit cell with combo Editor and close app afterwards)

Regards.

unit Unit1;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
  FMX.TMSBaseControl, FMX.TMSGridCell, FMX.TMSGridOptions, FMX.TMSGridData,
  FMX.TMSCustomGrid, FMX.TMSGrid;

type
  TForm1 = class(TForm)
    TMSFMXGrid1: TTMSFMXGrid;
    StyleBook1: TStyleBook;
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.fmx}

end.

We have tested this here in Delphi XE8 and Delphi 10 Seattle and are still not able to reproduce this. Please send us a sample that is able to reproduce this issue.

Kind Regards, 
Pieter

Support email has been sent with sample project.

Able to reproduce the issue?

Were you able to reproduce?

We have already answered your question by email. We are able to reproduce this issue, but when copying and pasting the TTMSFMXGrid in the same form, removing the original grid, the issue isn't reproducible anymore. It's still unclear why the invalid pointer occurs, we are still investigating this.


Kind Regards, 
Pieter

Thanks.

Sorry to bother you again:
Issue with Combobox still exists in TTMSFMXGrid 2.2.3.0!
Adapttostyle := true, Stylebook connected, UseStylemanager := true
AV happens after close/Destroy of Form with grid and you edited a cell with Combobox before
NO AV when Adapttostyle := false

Please fix,
Thanks &
Kind Regards
Roman

Hi, 


We ahve investigated the AV here, but aren't able to reproduce this. Can you specify in which IDE you were able to reproduce the issue? 

Kind Regards, 
Pieter

Good Morning Pieter,

IDE with issue : Embarcadero? Delphi 10 Seattle Version 23.0.20618.2753

Regards,
Roman

Further investigated this here, but still not able to reproduce this. Please send us a sample project that demonstrates this with exact instructions on how to reproduce this issue.


Kind Regards, 
Pieter

Will send you email how to reproduce this AV.
Regards