Page 1 of 2

Gridindex out of range

Posted: Mon Apr 17, 2023 3:37 am
by Daytona675x
When I compile a unit and if there's an error, then TwineCompile 5.5.1 (current GetIt version), seems to be the reason for the following error message thrown by C++ Builder 11.3 (Patch 1):

Gitterindex außerhalb des zulässigen Bereichs.
(German, means sth. like "Grid index is outside the allowed range.")
The message details shows the following stack trace:

[5844A1ED]{vcl280.bpl } Vcl.Grids.InvalidOp (Line 928, "Vcl.Grids.pas" + 1) + $E
[5844F7A0]{vcl280.bpl } Vcl.Grids.TCustomGrid.MoveCurrent (Line 3799, "Vcl.Grids.pas" + 2) + $10
[5844ECB4]{vcl280.bpl } Vcl.Grids.TCustomGrid.FocusCell (Line 3424, "Vcl.Grids.pas" + 1) + $9
[58452246]{vcl280.bpl } Vcl.Grids.TCustomGrid.SetRow (Line 5062, "Vcl.Grids.pas" + 0) + $12
[772E1848]{TwineCompilePluginCore110.dll} Unbekannte Funktion bei __dbk_fcall_wrapper + $FF78
[772F349A]{TwineCompilePluginCore110.dll} Unbekannte Funktion bei __dbk_fcall_wrapper + $21BCA
[583B6E7B]{vcl280.bpl } Vcl.ExtCtrls.TTimer.Timer (Line 3244, "Vcl.ExtCtrls.pas" + 1) + $E
[583B6D5B]{vcl280.bpl } Vcl.ExtCtrls.TTimer.WndProc (Line 3202, "Vcl.ExtCtrls.pas" + 4) + $7
[55B45C1C]{rtl280.bpl } System.Classes.StdWndProc (Line 18517, "System.Classes.pas" + 8) + $0
[58435263]{vcl280.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 11488, "Vcl.Forms.pas" + 23) + $1
[584352A6]{vcl280.bpl } Vcl.Forms.TApplication.HandleMessage (Line 11518, "Vcl.Forms.pas" + 1) + $4
[584355E5]{vcl280.bpl } Vcl.Forms.TApplication.Run (Line 11657, "Vcl.Forms.pas" + 27) + $3
[005080A2]{bds.exe } bds.bds (Line 227, "" + 16) + $2

The TwineCompile-related lines translate to "unknown function at __dbk_fcall_wrapper ".

If I disable "Errors" in TwineCompile's "Compile Messages" panel, then the problem doesn't happen.

Re: Gridindex out of range

Posted: Mon Apr 17, 2023 11:43 am
by rgomez
I've got this error too, but can't really why it happens. I think it has to do with some of the messages produced by the compiling, but haven't really tried to pinpoint this.

Re: Gridindex out of range

Posted: Fri May 12, 2023 4:44 am
by omtom
Same here.

If an error occurs during compilation, the "Grid index error" is displayed 90% of the time.

It would be nice if this could be corrected, as it is a bit tedious.

Re: Gridindex out of range

Posted: Fri May 12, 2023 6:44 pm
by jomitech
Apologies for the lack of response. Looking into this issue.

Re: Gridindex out of range

Posted: Tue May 16, 2023 5:58 pm
by jomitech
Can you download this file, extract into the TwineCompile Program Files directory and see if it resolves this issue:

https://jomitech.com/downloads/TwineCom ... ore110.zip

Re: Gridindex out of range

Posted: Wed May 17, 2023 3:16 am
by omtom
No, it doesn't help.
Maybe it depends on how the tools windows are docked.
Attached is a screenshot of my IDE.

Re: Gridindex out of range

Posted: Wed May 17, 2023 6:03 am
by jomitech
Can you provide the exception trace for the error you're getting?

Re: Gridindex out of range

Posted: Fri May 19, 2023 2:23 am
by Daytona675x
Unfortunately it doesn't fix things here neither.
Here's my stacktrace:

[5896A1ED]{vcl280.bpl } Vcl.Grids.InvalidOp (Line 928, "Vcl.Grids.pas" + 1) + $E
[5896F7A0]{vcl280.bpl } Vcl.Grids.TCustomGrid.MoveCurrent (Line 3799, "Vcl.Grids.pas" + 2) + $10
[5896ECB4]{vcl280.bpl } Vcl.Grids.TCustomGrid.FocusCell (Line 3424, "Vcl.Grids.pas" + 1) + $9
[58972246]{vcl280.bpl } Vcl.Grids.TCustomGrid.SetRow (Line 5062, "Vcl.Grids.pas" + 0) + $12
[50391848]{TwineCompilePluginCore110.dll} Unbekannte Funktion bei __dbk_fcall_wrapper + $FF78
[503A349A]{TwineCompilePluginCore110.dll} Unbekannte Funktion bei __dbk_fcall_wrapper + $21BCA
[588D6E7B]{vcl280.bpl } Vcl.ExtCtrls.TTimer.Timer (Line 3244, "Vcl.ExtCtrls.pas" + 1) + $E
[588D6D5B]{vcl280.bpl } Vcl.ExtCtrls.TTimer.WndProc (Line 3202, "Vcl.ExtCtrls.pas" + 4) + $7
[58D25C1C]{rtl280.bpl } System.Classes.StdWndProc (Line 18517, "System.Classes.pas" + 8) + $0
[58955263]{vcl280.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 11488, "Vcl.Forms.pas" + 23) + $1
[589552A6]{vcl280.bpl } Vcl.Forms.TApplication.HandleMessage (Line 11518, "Vcl.Forms.pas" + 1) + $4
[589555E5]{vcl280.bpl } Vcl.Forms.TApplication.Run (Line 11657, "Vcl.Forms.pas" + 27) + $3
[00AA80A2]{bds.exe } bds.bds (Line 227, "" + 16) + $2

Re: Gridindex out of range

Posted: Sat May 20, 2023 10:12 am
by jomitech
I think I figured the issue out. Was very hard to reproduce as it was a timing issue with the message synchronization. Please download that file again, extract into the TwineCompile Program Files directory and see if it resolves the issue:

https://jomitech.com/downloads/TwineCom ... ore110.zip

Re: Gridindex out of range

Posted: Mon May 22, 2023 2:25 am
by omtom
After a first quick test it seems to work correctly now.
Thanks.