[9.20ß1] TC 64bit Range Check Error
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, I had to half the numbers on my 96dpi display to get the error. What happens is that one of the widths or heights of the controls becomes negative, causing the range check error in Lazarus. Delphi just ignores the error. I will manually limit the sizes to 0 or larger.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm getting it also without RedirectSection=0. Maybe you have a line starting with AlternateUserIni= in your [configuration] section? Only then the RedirectSection=0 has any effect.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That explains why you had to use AlternateUserIni=0, otherwise the width and height in that section would be ignored.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
After identifying the root cause of the "Range Check Error" I removed the ill fated two entries "dx=" and "dy=" from wincmd.ini and started to use 9.20ß1 64-bit regularly. After a few hours of normal use the "Range Check Error" hit me again, twice.
Answering the prompt with "yes" allowed me to continue from the state the error poped up, the file panes still seem to behave normally. Yet I immediately went back to stable release 9.12 as this is far to unsafe to continue.
Checking my wincmd.ini I could not find any trails of the previously removed entries "dx=" and "dy=", so there are certainly more unidentified issues with the change from Delphi to Lazarus.
Code: Select all
---------------------------
Total Commander 9.20ß1
---------------------------
Range check error.
Range check error
Windows 10 Professional 10.0 (Build 17134), base: 0400000
Please report this error to the Author, with a description
of what you were doing when this error occurred!
Stack trace (x64):8C2F9E
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------
Checking my wincmd.ini I could not find any trails of the previously removed entries "dx=" and "dy=", so there are certainly more unidentified issues with the change from Delphi to Lazarus.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You don't need to report any more "range check error" bugs until beta 2. I think I found the problem and will apply a bugfix.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This should be fixed in TC 9.20 beta 2, please test it!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I have been using TC 9.20ß2 for a day now without any issues. Also I just successfully retested a wincmd.ini containing the three entries which previously lead to the "Range Check Error" at start up. This bug appears to be fixed.
Thank you for the quick turn around, Christian, it's much appreciated.
Thank you for the quick turn around, Christian, it's much appreciated.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, please let me know immediately if it occurs again.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I'm sorry that I actually have to answer your request.
Just got another "Range Check Error". It appeared after renaming a file extension, then immediately pressed [End] to jump to the end of the directory containing 526 files and 2 subdirectories at the time the error occured.
Confirming the error prompt with "yes" I was able to continue working with TC. I directly tried to retrigger the error by redoing the same steps, however without success.
If it helps you to identify the issue by providing me with a special debugging version that logs all operations, I'm glad to support.
Just got another "Range Check Error". It appeared after renaming a file extension, then immediately pressed [End] to jump to the end of the directory containing 526 files and 2 subdirectories at the time the error occured.
Confirming the error prompt with "yes" I was able to continue working with TC. I directly tried to retrigger the error by redoing the same steps, however without success.
If it helps you to identify the issue by providing me with a special debugging version that logs all operations, I'm glad to support.
Last edited by deus-ex on 2018-05-10, 15:54 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: