Sample.zip (29.3 KB)
Please have a look to the attached sample projects (delphi 10.4.2 with TMS Scripter 7.24).
- a Dll project that only have IDEMAIN in dependency and do nothing
- a exe that only load the dll then exit
Execute the project in the Delphi debugger, an access violation occurs in TWICImage.Destroy calling FImagingFactory._release while FImagingFactory is not nil.
If the IDEMAIN dependency is removed, the access violation disappear.
I tried to reproduce without IDEMAIN dependency, with TDBNavigator or TDBGrid, in these cases the TWICImage.Destroy was called but did not crashed.
It seems something goes wrong when using IDEMAIN in a dll.