Hi,
using Delphi XE with Print Preview 5.61 and SynPDF v1.18 on Windows 10:
PDF creation works fine but after closing my application I get runtime error 216.
Even when I don't print anything I keep getting the runtime error when I use {$DEFINE SYNOPSE} in my project options.
I traced it down to the finalization of unit SynGdiPlus.
finalization
Gdip.Free;
Windows.DeleteCriticalSection(GdipCS);
end.
Gdip.Free causes the problem, so Windows.DeleteCriticalSection(GdipCS) is skipped when debugging.
Any help appreciated.