Crash during creation of grid

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
Pellaeon
Newbie
Newbie
Posts: 2
Joined: Thu Aug 24, 2023 12:00 am
Location: Germany

Crash during creation of grid

Post by Pellaeon » Tue Aug 19, 2025 6:30 pm

Hi,

I am new to TeeGrid. I use Rad Studio 12 Community Edition Delphi.

I have the following situation. I have an existing program and have dragged a TeeGrid into the GUI. I simply dragged it into the GUI, created two columns and did nothing else.
When I start my program now, I get an access violation. It happens in Tee.Grid.RowGroup.pas in the method TRowGroup.ChangedBands. FRows is nil and therefore an access results in a crash (see attached image).

How can I solve this? As I wrote: I only added the control to my GUI and startet the program, nothing more.
I have created a simple test program in advance. There it works fine. I have no clue what the problem could be.

Best regards
Pellaeon

PS: and another hint: it would be cool to have an installer of the TeeGrid for the licensed version for Community Edition users. I followed the instructions in this post: https://www.steema.com/support/viewtopi ... ity#p79148. But that's awkward. So a better solution would be nice. Atm I can't use 1.18 because there is no binary version for download.
Attachments
Access-Violation-Location.jpg
Access-Violation-Location.jpg (451.55 KiB) Viewed 2853 times

Marc
Site Admin
Site Admin
Posts: 1344
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Crash during creation of grid

Post by Marc » Tue Aug 26, 2025 7:38 am

Hello Pellaeon,

Apologies for the delay with this reply.

I'm not able to reproduce the issue in a simple test:
1. New form
2. Drag TeeGrid to form
3. Add 2 columns
4. Run
2colgrid.jpg
2colgrid.jpg (139.33 KiB) Viewed 403 times
Does your grid look like this at designtime? If you follow the above steps on a fresh form, do you also experience the problem.

With thanks.
Regards,
Marc Meumann
Steema Support

Pellaeon
Newbie
Newbie
Posts: 2
Joined: Thu Aug 24, 2023 12:00 am
Location: Germany

Re: Crash during creation of grid

Post by Pellaeon » Tue Aug 26, 2025 9:05 am

Hi Marc,

I already created a test project like you described. This test project works fine.

I added a designer screenshot of the GUI where I want to add the grid. The left grid in the main GUI ist an old one which I'd like to replace with the new TeeGrid. On the right I added a TeeGrid with 2 columns as you can see as first test. Nothing more, there is no additional line of code, only the widget in the designer and the variable 'TeeCutGrid: TTeeGrid;' which was added to the pas file.

I compile and start the program and then I get the access violation during the creation of the TeeGrid component. You can see the call stack in the image of my inital post. When I remove the Teegrid, then the program works fine.

Best regards
Attachments
Screen.jpg
Screen.jpg (458.52 KiB) Viewed 372 times

Marc
Site Admin
Site Admin
Posts: 1344
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Crash during creation of grid

Post by Marc » Tue Aug 26, 2025 3:18 pm

Hello Pellaeon,

I see a difference in the call stack between the test I'm running and the grid on your test form.

The code you're running is v1.18, correct?

The Collection should have a value going into the TRowGroup.ChangedBands procedure. In your test it reports nil. ie:
GridStart.jpg
GridStart.jpg (410.43 KiB) Viewed 306 times
The problem seems to occurs earlier on, if I compare the basic version, working ok, on the left, with your test version (right).
StackDifferences.jpg
StackDifferences.jpg (380.62 KiB) Viewed 306 times
I don't have an explanation for that, I'm assuming that you've tried this several times and that the problem is consistent. I think we'd need to be able to debug on an example that fails to be able to determine the cause and whether the other component on the form is part of that cause.

Regards,
Marc
Steema Support

Post Reply