List index out of bounds error

delphi package - automated exception handling

List index out of bounds error

Postby normnet5348 » Wed Sep 23, 2015 3:04 pm

On closing a tab in PageControl1 I occasionally receive a "List index out of bounds" error.
In disassembling: "0066a3c5 > call -$1376da ($532cf0) ; ComCtrls.TPageControl.GetPage" is highlighted.
What Delphi command should I be looking for?
I am using Delphi XE Starter and MadExcept 3.0

Norm

date/time : 2015-09-23, 08:55:23, 926ms
computer name : NORMS_PC_BASIC
user name : normnet
registered owner : Windows User
operating system : Windows NT New x64 build 9200
system language : English
system up time : 3 days 5 hours
program up time : 1 minute 32 seconds
processors : 8x Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
physical memory : 6583/8139 MB (free/total)
free disk space : (C:) 64.48 GB (Q:) 26.85 GB
display mode : 2560x1600, 32 bit
process id : $be4
allocated memory : 77.23 MB
executable : FineLineIDE.exe
exec. date/time : 2015-09-23 00:09
compiled with : Delphi XE
madExcept version : 3.0m
contact name : Norm Carlberg
contact email : normnet2@gmail.com
callstack crc : $09f5c808, $46c3bc07, $46c3bc07
exception number : 1
exception class : EListError
exception message : List index out of bounds (8).

main thread ($d04):
0049fbc1 +015 FineLineIDE.exe Classes TList.Get
00532cfe +00e FineLineIDE.exe ComCtrls TPageControl.GetPage
0066a3c5 +779 FineLineIDE.exe sPageControl 985 +115 TsPageControl.WndProc
004e3844 +02c FineLineIDE.exe Controls TWinControl.MainWndProc
004ad7c0 +014 FineLineIDE.exe Classes StdWndProc
77b1a6db +00b user32.dll DispatchMessageW
0055fd6f +0f3 FineLineIDE.exe Forms TApplication.ProcessMessage
0055fdb2 +00a FineLineIDE.exe Forms TApplication.HandleMessage
005600dd +0c9 FineLineIDE.exe Forms TApplication.Run
00830721 +0bd FineLineIDE.exe FineLineIDE 51 +27 initialization
76cc7c02 +022 KERNEL32.DLL BaseThreadInitThunk

modules:
00400000 FineLineIDE.exe Q:\1FINELINE11\2015-09-22v01\Debug\Win32
6d710000 oleacc.dll 7.2.9600.17415 C:\WINDOWS\SYSTEM32
6d760000 WindowsCodecs.dll 6.3.9600.17669 C:\WINDOWS\SYSTEM32
6d980000 WINMMBASE.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
6d9b0000 wsock32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
6da90000 winmm.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
6dac0000 olepro32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
6fe70000 DEVOBJ.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
700d0000 winspool.drv 6.3.9600.17415 C:\WINDOWS\SYSTEM32
701a0000 propsys.dll 7.0.9600.17415 C:\WINDOWS\system32
70bd0000 avghookx.dll 15.0.0.6140 C:\Program Files (x86)\AVG\AVG2015
72260000 uxtheme.dll 6.3.9600.17415 C:\WINDOWS\system32
73070000 comctl32.dll 6.10.9600.17415 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17415_none_a9ed7f470139b3c1
735d0000 msimg32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
73760000 dwmapi.dll 6.3.9600.17415 C:\WINDOWS\system32
73780000 SHCORE.DLL 6.3.9600.17666 C:\WINDOWS\SYSTEM32
738d0000 thumbcache.dll 6.3.9600.17415 C:\Windows\SYSTEM32
73ab0000 wininet.dll 11.0.9600.17728 C:\WINDOWS\SYSTEM32
73c90000 iertutil.dll 11.0.9600.17728 C:\WINDOWS\SYSTEM32
74550000 USERENV.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
74960000 version.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
74d10000 profapi.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
754a0000 kernel.appcore.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
755c0000 bcryptPrimitives.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
75620000 CRYPTBASE.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
75630000 SspiCli.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
75650000 msvcrt.dll 7.0.9600.17415 C:\WINDOWS\SYSTEM32
75720000 shell32.dll 6.3.9600.17680 C:\WINDOWS\SYSTEM32
76a30000 SHLWAPI.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
76a80000 combase.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
76c10000 comdlg32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
76cb0000 KERNEL32.DLL 6.3.9600.17415 C:\WINDOWS\SYSTEM32
76df0000 imm32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77020000 ole32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77150000 oleaut32.dll 6.3.9600.17560 C:\WINDOWS\SYSTEM32
771f0000 RPCRT4.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
772b0000 SETUPAPI.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77480000 sechost.dll 6.3.9600.17734 C:\WINDOWS\SYSTEM32
77530000 clbcatq.dll 2001.12.10530.17415 C:\WINDOWS\SYSTEM32
775c0000 MSCTF.dll 6.3.9600.17706 C:\WINDOWS\SYSTEM32
776e0000 gdi32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
777f0000 cfgmgr32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77840000 WS2_32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77890000 KERNELBASE.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77b00000 NSI.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77b10000 user32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77c80000 advapi32.dll 6.3.9600.17415 C:\WINDOWS\SYSTEM32
77e30000 ntdll.dll 6.3.9600.17736 C:\WINDOWS\SYSTEM32

processes:
0000 Idle 0 0 0
0004 System 0 0 0
0160 smss.exe 0 0 0
01f4 avgrsa.exe 0 0 0
04dc csrss.exe 0 0 0
0524 wininit.exe 0 0 0
0594 services.exe 0 0 0
059c lsass.exe 0 0 0
05e0 svchost.exe 0 0 0
0614 svchost.exe 0 0 0
0674 nvvsvc.exe 0 0 0
06d0 svchost.exe 0 0 0
06f4 svchost.exe 0 0 0
0734 svchost.exe 0 0 0
07a0 svchost.exe 0 0 0
07f4 ClassicShellService.exe 0 0 0
0520 svchost.exe 0 0 0
080c spoolsv.exe 0 0 0
0828 svchost.exe 0 0 0
08f8 armsvc.exe 0 0 0
0910 avgfws.exe 0 0 0
0948 avgidsagent.exe 0 0 0
09b8 avgwdsvc.exe 0 0 0
0a78 svchost.exe 0 0 0
0cc4 svchost.exe 0 0 0
0d74 WUDFHost.exe 0 0 0
0da0 avgnsa.exe 0 0 0
0db0 avgemca.exe 0 0 0
0e90 svchost.exe 0 0 0
0fc0 SearchIndexer.exe 0 0 0
17ac PhotoshopElementsFileAgent.exe 0 0 0
1f18 avgcsrva.exe 0 0 0
13d4 audiodg.exe 0 0 0
0930 csrss.exe 2 0 0
15c4 winlogon.exe 2 0 0
09ac dwm.exe 2 0 0
1224 nvxdsync.exe 2 0 0
0a08 nvvsvc.exe 2 0 0
044c ClassicStartMenu.exe 2 52 5 normal
11c4 taskhostex.exe 2 13 17 normal
1920 explorer.exe 2 694 411 normal
12c4 AAM Updates Notifier.exe 2 13 8 normal C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\UWA
0544 DSmobileSCAN.exe 2 16 44 normal C:\Program Files (x86)\Brother\DSmobileSCAN II
18e0 avgui.exe 2 111 69 normal C:\Program Files (x86)\AVG\AVG2015
1bf8 EfficientReminderFree.exe 2 437 166 normal C:\Program Files (x86)\Efficient Reminder Free
1a6c ctfmon.exe 2 9 8 normal C:\WINDOWS\SysWOW64
1da0 KeePass.exe 2 106 67 normal
1608 soffice.exe 2 4 1 normal C:\Program Files (x86)\OpenOffice.org 3\program
0b58 soffice.bin 2 33 20 normal C:\Program Files (x86)\OpenOffice.org 3\program
0be4 FineLineIDE.exe 2 182 157 normal Q:\1FINELINE11\2015-09-22v01\Debug\Win32
2010 notepad.exe 2 23 19 normal

hardware:
+ {1ed2bbf9-11f0-4084-b21f-ad83a8e6dcdc}
- Brother HL-4040CN series
- Fax
- Microsoft XPS Document Writer
- Root Print Queue
+ {36fc9e60-c465-11cf-8056-444553540000}
- ASMedia USB 3.0 eXtensible Host Controller - 0096 (Microsoft)
- Generic SuperSpeed USB Hub
- Generic SuperSpeed USB Hub
- Generic USB Hub
- Generic USB Hub
- Generic USB Hub
- Generic USB Hub
- Generic USB Hub
- Intel(R) 7 Series/C216 Chipset Family USB Enhanced Host Controller - 1E26
- Intel(R) 7 Series/C216 Chipset Family USB Enhanced Host Controller - 1E2D
- Intel(R) USB 3.0 eXtensible Host Controller - 0100 (Microsoft)
- spark dongle (driver 5.0.2064.0)
- USB Composite Device
- USB Mass Storage Device
- USB Printing Support
- USB Root Hub
- USB Root Hub
- USB Root Hub (xHCI)
- USB Root Hub (xHCI)
+ {4d36e965-e325-11ce-bfc1-08002be10318}
- ASUS BW-12B1ST
+ {4d36e966-e325-11ce-bfc1-08002be10318}
- ACPI x64-based PC
+ {4d36e967-e325-11ce-bfc1-08002be10318}
- KINGSTON SH100S3120G
- KINGSTON SH103S3480G
- KINGSTON SVP100S2256G
- Ut163 USB2FlashStorage USB Device
+ {4d36e968-e325-11ce-bfc1-08002be10318}
- NVIDIA GeForce GT 640 (driver 9.18.13.4752)
+ {4d36e96a-e325-11ce-bfc1-08002be10318}
- Standard SATA AHCI Controller
- Standard SATA AHCI Controller
+ {4d36e96b-e325-11ce-bfc1-08002be10318}
- Standard PS/2 Keyboard
+ {4d36e96c-e325-11ce-bfc1-08002be10318}
- High Definition Audio Device
- NVIDIA High Definition Audio
+ {4d36e96e-e325-11ce-bfc1-08002be10318}
- Dell 3007WFP (driver 1.0.0.0)
+ {4d36e96f-e325-11ce-bfc1-08002be10318}
- HID-compliant mouse
+ {4d36e971-e325-11ce-bfc1-08002be10318}
- PCI Multi-IO Controller (driver 2.0.4.0)
+ {4d36e972-e325-11ce-bfc1-08002be10318}
- Intel(R) 82579V Gigabit Network Connection
- Qualcomm Atheros AR9485 Wireless Network Adapter
+ {4d36e978-e325-11ce-bfc1-08002be10318}
- Communications Port (COM1)
- PCI Parallel Port (LPT1) (driver 2.0.4.0)
- PCI Serial Port (COM2) (driver 2.0.4.0)
- PCI Serial Port (COM3) (driver 2.0.4.0)
+ {4d36e979-e325-11ce-bfc1-08002be10318}
- Brother HL-4040CN series (driver 1.13.0.0)
+ {4d36e97b-e325-11ce-bfc1-08002be10318}
- Microsoft Storage Spaces Controller
+ {4d36e97d-e325-11ce-bfc1-08002be10318}
- ACPI Fan
- ACPI Fan
- ACPI Fan
- ACPI Fan
- ACPI Fan
- ACPI Fixed Feature Button
- ACPI Power Button
- ACPI Thermal Zone
- ACPI Thermal Zone
- Composite Bus Enumerator
- Direct memory access controller
- High Definition Audio Controller
- High Definition Audio Controller
- High precision event timer
- Intel(R) 7 Series/C216 Chipset Family PCI Express Root Port 1 - 1E10
- Intel(R) 7 Series/C216 Chipset Family PCI Express Root Port 3 - 1E14
- Intel(R) 7 Series/C216 Chipset Family PCI Express Root Port 4 - 1E16
- Intel(R) 7 Series/C216 Chipset Family PCI Express Root Port 8 - 1E1E
- Intel(R) 7 Series/C216 Chipset Family SMBus Host Controller - 1E22
- Intel(R) 82801 PCI Bridge - 244E
- Intel(R) 82802 Firmware Hub Device
- Intel(R) Management Engine Interface (driver 8.1.0.1263)
- Intel(R) Z77 Express Chipset LPC Controller - 1E44
- Microsoft ACPI-Compliant Embedded Controller
- Microsoft ACPI-Compliant System
- Microsoft Basic Display Driver
- Microsoft Basic Render Driver
- Microsoft System Management BIOS Driver
- Microsoft Virtual Drive Enumerator
- Microsoft Windows Management Interface for ACPI
- Microsoft Windows Management Interface for ACPI
- Motherboard resources
- Motherboard resources
- Motherboard resources
- Motherboard resources
- Motherboard resources
- NDIS Virtual Network Adapter Enumerator
- Numeric data processor
- PCI Express Root Complex
- PCI standard PCI-to-PCI bridge
- Plug and Play Software Device Enumerator
- Printer Port Logical Interface
- Programmable interrupt controller
- Remote Desktop Device Redirector Bus
- System board
- System CMOS/real time clock
- System timer
- UMBus Root Bus Enumerator
- Volume Manager
- Xeon(R) processor E3-1200 v2/3rd Gen Core processor DRAM Controller - 0150
- Xeon(R) processor E3-1200 v2/3rd Gen Core processor PCI Express Root Port - 0151
+ {50127dc3-0f36-415e-a6cc-4cb3be910b65}
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
- Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
+ {533c5b84-ec70-11d2-9505-00c04f79deaf}
- Generic volume shadow copy
- Generic volume shadow copy
- Generic volume shadow copy
- Generic volume shadow copy
+ {62f9c741-b25a-46ce-b54c-9bccce08b6f2}
- Microsoft Device Association Root Enumerator
- Microsoft IPv4 IPv6 Transition Adapter Bus
+ {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
- HID-compliant vendor-defined device
- USB Input Device
- USB Input Device
+ {c166523c-fe0c-4a94-a586-f1a80cfbbf3e}
- Digital Audio (S/PDIF) (High Definition Audio Device)
- Digital Audio (S/PDIF) (High Definition Audio Device)
- Speakers (High Definition Audio Device)
+ {eec5ad98-8080-425f-922a-dabf3de3f69a}
- D1P1 FL11
- D1P2DATA
- D2P2UNO
- D2P3TEST
- D2P4 UNO
- D2P5ELEC
- RecoveryMedia

disassembling:
[...]
0066a3ac cmp dword ptr [eax+$340], -1
0066a3b3 jz loc_66a4ef
0066a3b9 0985 mov eax, [ebp-4]
0066a3bc mov edx, [eax+$340]
0066a3c2 mov eax, [ebp-4]
0066a3c5 > call -$1376da ($532cf0) ; ComCtrls.TPageControl.GetPage
0066a3ca mov ebx, eax
0066a3cc mov eax, [ebp-4]
0066a3cf call -$1c68 ($66876c) ; sPageControl.TsPageControl.GetActivePage
0066a3d4 cmp ebx, eax
0066a3d6 jz loc_66a4af
[...]

error details:
Close of tab
normnet5348
 
Posts: 5
Joined: Sat Mar 08, 2014 1:06 pm

Re: List index out of bounds error

Postby madshi » Wed Sep 23, 2015 3:16 pm

> What Delphi command should I be looking for?

What do you mean? I'm not sure I understand your question.

Looking at the bug report, something with the pages of that TPageControl seems to be problematic, but it's hard to say what exactly. The user wrote "Close of tab", which matches the callstack. Why it crashes is hard to say from the callstack alone. Maybe you can contact the user and ask for exact steps to reproduce the problem on your PC?
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm

Re: List index out of bounds error

Postby normnet5348 » Wed Sep 23, 2015 11:49 pm

madshi wrote:> What Delphi command should I be looking for?

What do you mean? I'm not sure I understand your question.

Looking at the bug report, something with the pages of that TPageControl seems to be problematic, but it's hard to say what exactly. The user wrote "Close of tab", which matches the callstack. Why it crashes is hard to say from the callstack alone. Maybe you can contact the user and ask for exact steps to reproduce the problem on your PC?

I am the user and with some patience can repeat the error but as of yet haven't found the offending line of code.
Does "List index out of bounds" pertain to a particular type of variable similar to how "Access violation" pertains to arrays?

Norm
normnet5348
 
Posts: 5
Joined: Sat Mar 08, 2014 1:06 pm

Re: List index out of bounds error

Postby madshi » Thu Sep 24, 2015 6:58 am

Ah, you're the user! That's rare that users ask here. Wouldn't it make more sense to contact the FineLineIDE developer about this? He'd have the best chances to fix this.

In this case it's a TList class. It's "Get()" method is called and asked for an index which doesn't exist in the list, which is why TList raises an exception to signal that something went wrong. And TList.Get() is called by TPageControl.GetPage (see main thread callstack). So the TList object is likely owned by the TPageControl object. You can analyze that deeper by looking into the Delphi RTL/VCL source code.
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm

Re: List index out of bounds error

Postby starkdug » Wed Jan 08, 2020 6:07 am

I also faced the same bounds error in my system. Then I thought it would be BIOS problem. Basically I have been using Dell laptop and Windows 10 operating system. But when I wanted to update dell bios at that time system was gone shutdown. I was so frustrated with that technical problem. I could not understand what will be solution process. If anyone faced that problem and has any solution then suggest to me.
starkdug
 
Posts: 1
Joined: Wed Jan 08, 2020 5:15 am


Return to madExcept

Who is online

Users browsing this forum: No registered users and 15 guests