Please note that line number belongs to source code, not the unit. While these are the same most of the time, it is not always so. For example, if you add an include file with code, then unit name will be something like 'Unit1', while line numbers will be from Code.inc for all code inside the include file. The same is true for generics. Unit name may be 'Unit1.pas', while line numbers will be taken from System.Generics.Collections.pas.
|