Madexceptbpl Top Link
Do not rely on madExcept for expected exceptions (e.g., file not found). Use try...except for expected errors, and let madExcept handle the unexpected "impossible" errors. Conclusion
Inside madExcept.pas , there is a function called TopOfStack (or GetTopOfStack ), which returns the highest memory address of the current thread’s stack. When an exception occurs in a BPL, MadExcept sometimes logs the instruction before the crash as: madexceptbpl top
To avoid ever needing to search for madexceptbpl top again, follow these golden rules: Do not rely on madExcept for expected exceptions (e