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:
Learn why the map is cool in Go!
A method to design records so that they're allocated on a specific byte boundary, such as 16 bytes, 512 bytes, 4096 bytes, etc.
Learn the command line used to compile System.pas in Delphi
How to free more space on your home drive by redirecting the location for SDKs in RAD Studio