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.
Crash during creation of grid
Crash during creation of grid
- Attachments
-
- Access-Violation-Location.jpg (451.55 KiB) Viewed 2853 times
Re: Crash during creation of grid
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
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
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
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
Re: Crash during creation of grid
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
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 (458.52 KiB) Viewed 372 times
Re: Crash during creation of grid
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:
The problem seems to occurs earlier on, if I compare the basic version, working ok, on the left, with your test version (right).
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
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:
The problem seems to occurs earlier on, if I compare the basic version, working ok, on the left, with your test version (right).
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