That solves that problem, but I still get range check errors further down. It does not seem to be 100% reliable, and the position of the error seems to jump, I cannot locate it.
I am using Lazarus x86-64 here.
Saying that the program runs somewhere, e.g. in a sandbox, does not mean a lot. You may have uninitialised variables which happen to be zero in your environment, and therefore it works, by chance.
I have now recompiled with the "trash variables" option on, to initialise your variables with garbage values. It crashes violently on pressing GO. I could not kill Lazarus, but just before I was about restarting the PC, a message popped up. See attached.
Strings are starting at 1, not zero !!!! I guess you have this mistake in more than just one place.
|