In Delphi 2009, my program now produces a "List index out of bounds" error. It generates a popup box:
(source: beholdgenealogy.com)
I'm using the "Debug" Build Configuration that has all the Runtime error checking turned on. But this does not capture the error before it happens.
Is there any simple way to locate the source of this error in my program without having to put in breakpoints and narrow it down by trial and error?
Do you have "Stop on Delphi Exceptions" turned on? (Tools\Debugger Options\Language Exceptions [Delphi7]) Otherwise it won't break in your sourcecode.
Also make sure that EListError is not in your "Exception Types to Ignore" list. This list is also found at Tools\Debugger Options\Language Exceptions (Delphi 7).
madExcept (free) or EurekaLog (paid) may help. You can set them up to show/email a stack trace when an error occurs. I use EurekaLog in all my projects and it is invaluable for fixing these kinds of things.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With