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/viewtopic.php?f=3&t=17813&p=79148&hilit=community#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.
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.
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.
I see the difference in the callstack you mentioned.
An event is triggering the TCollection in my sequence which leads to a different call stack.
I’m currently just as clueless as to why this is happening. Are there any compilation switches that affect this?
The program in which I want to use TeeGrid is a bit older, but it has always been updated in the Delphi versions without problems so far.
Sorry for the delayed reply.
I’m afraid I have to insist on asking you for a simple example project that we can run as-is to reproduce the problem on our side.