List of indices out of bounds, adding delphi frame

I tried to find my mistake, read a few topics, but I could not find clues why this would happen. If someone can help me even get at least some hint of how I can check what is happening, so I can fix it, it would be very helpful.

I have an encoding application that has several links interconnected to form an executable file.
I have a shape and frame in the same project. When I try to add a frame to the form, it gives me the error "Index index out bounds". I can add other frames that are in this project to this form, but I cannot add this frame to this form or other project forms, but a frame has been added to the project.

Thank you in advance for your help.

Thomas

+3
source share
2 answers

I was able to fix the problem by deleting and adding the frame again to the project.

Thanks for the help, Ken and Maryan.

Thank you for teaching me how to debug design time errors, Mason, I didn’t even know that this is possible. Its always nice to learn new things.

And thanks for your quick reply.

Thomas

+1
source

"Index list outside (-1)" is an interesting mistake. If I were to guess, I would say that somewhere it is executing code that looks like this:

Index := List.IndexOf(Whatever);
List.Delete(index);

BPL, . BPL, , . . Run Parameters.... Host Application "" bds.exe( IDE Delphi), F9. IDE BPL.

, , Delphi , . .

+3

Source: https://habr.com/ru/post/1775250/