compilation error after update to Web Core 2.4.5

Hello,
After updating TMS Web Core to the last version 2.4.5 ,
I have this compilation error (for a project that was compiling just fine on previous version 2.4.0.0 trial)

List index out of bounds (-1). TTMSTokenList range is 0..3443
[Fatal Error] List index out of bounds (-1). TTMSTokenList range is 0..3443

I can't figure out where it's coming from, and can't even just identify the elements that could be involved.

(D12 Architect, Windows 10)

thanks

How can we reproduce this?

Hi,

Did you resolve this, if so, how? this is happening on a brand new installation of Delphi 12.2 on my laptop. It doesn't happen on my main PC.

Regards,

Ken

I haven't seen any such errors anymore on 2.5.x and 2.6 beta

I am using 2.5.4. Can you please give me any idea of what this may be related to?

We have not seen this error here.
If you see this error, provide a sample source project + steps with which we can reproduce this here.

Problem is that it only happens on my laptop. That is why I asked for some clue regarding finding what is causing it.

As I have never seen this here, I have no idea

I have found the reason for this. I have a unit called MyRichEdit.pas. It used to be a form but no longer is but on my laptop the file MyRichEdit.dfm still existed. When compiling in this scenario you get this error. Removing the dfm resolved the issue.

Thanks for informing. If there is a DFM, it will indeed try to generate the code based on DFM to initialize components it finds in this DFM.