Well, this took a whole day of whittling away my large project to find the culprit (TAdvGraphicsPDFIO). I then created a test case that you can work with. Details are explained in the form. Four files are attached. I'm using Delphi 12.2 with TMS VCL 13.4.0.1.
(Also note the question I have about the missing "Add Page" option when right-clicking the TAdvPageControl component.)
Steve Vinson
ShutdownBug.dpr (257 Bytes)
ShutdownBug.dproj (57.4 KB)
ShutdownBugUnit.dfm (22.1 KB)
ShutdownBugUnit.pas (814 Bytes)