How to reproduce:
ScaleMM_v212.zip
Delphi 2010, scalemm.pas is the first unit in the application. Run the program,
close it. Observe runtime error 216.
More details:
SysUtils has a class destructor for TEncoding, which kills any encodings
created during the application run. Since they are created on first access,
their memory resides in scalemm.
Class destructors run with the same priority finalization runs, and if ScaleMM
relies on SysUtils then SysUtils is initialized before, and finalized after
ScaleMM.
Suggested fix:
Just comment out SysUtils in smmGlobal.pas, nothing uses it anyway it seems.
Original issue reported on code.google.com by himse...@gmail.com on 16 Dec 2012 at 3:15
Original issue reported on code.google.com by
himse...@gmail.com
on 16 Dec 2012 at 3:15