About the author
Since Delphi 3, NotifyModuleUnload in the System unit has been written the way it is now.
procedure NotifyModuleUnload(HInstance: THandle); var P: PModuleUnloadRec; begin P := ModuleUnloadList; while P <> nil do begin try P.Proc(HInstance); except // Make sure it doesn't stop notifications end; P := P.Next; end; {$IFDEF LINUX} InvalidateModuleCache; {$ENDIF} end;
The IDE calls NotifyModuleUnload in these conditions:
A method to design records so that they're allocated on a specific byte boundary, such as 16 bytes, 512 bytes, 4096 bytes, etc.