View Issue Details

IDProjectCategoryView StatusLast Update
0035588LazarusLCLpublic2019-05-22 16:33
ReportersembitAssigned ToJuha Manninen 
Status feedbackResolutionopen 
Product Version2.1 (SVN)Product Build61228 
Target VersionFixed in Version 
Summary0035588: Division by zero when trying to access a non-existing tab.
DescriptionPageControl1.Pages[-1].Caption raises this exception. The idea should be another exception. For example, the index out of range. Because of this, my application crashes.
TagsNo tags attached.
Fixed in Revision
Attached Files



2019-05-15 19:04

reporter (129,001 bytes)

Bart Broersma

2019-05-15 22:38

developer   ~0116215

I get:
ERROR in code: TNBPages.GetObject Index out of bounds
Creating gdb catchable error


2019-05-16 13:50

reporter   ~0116217

I have so.

error.jpg (126,031 bytes)
error.jpg (126,031 bytes)

Juha Manninen

2019-05-22 16:33

developer   ~0116337

Accessing a non-existing tab is clearly an error. You can catch an exception in your code if needed. I don't see what is the bug here.
Planning to resolve as "no change required".

Issue History

Date Modified Username Field Change
2019-05-15 19:04 sembit New Issue
2019-05-15 19:04 sembit File Added:
2019-05-15 22:38 Bart Broersma Note Added: 0116215
2019-05-16 13:50 sembit File Added: error.jpg
2019-05-16 13:50 sembit Note Added: 0116217
2019-05-22 16:33 Juha Manninen Assigned To => Juha Manninen
2019-05-22 16:33 Juha Manninen Status new => feedback
2019-05-22 16:33 Juha Manninen LazTarget => -
2019-05-22 16:33 Juha Manninen Note Added: 0116337