Can you shed some light on the following:
Attached are two super simple same WinForms applications using AxPXV_Control:
"DotNetFrameworkWinFormsSimple.zip" using ".NET Framework 4.8.9181.0" "DotNetWinFormsSimple.zip" using ".NET 7.0.12".
As you can see in (main) Form1's constructor I'm manually calling PXV_Inst.Init() and PXV_Inst.Shutdown() in both apps.
In the case of ".Net 7.x" - after closing the main form - the process is kept in memory and never actually terminates.
The same happens even if I do *not* manually call Init()/Shutdown() - but let the AxPXV_Control do the Init/Shutdown thingie.
In case of ".NET Framework 4.x" - all works as expected - the app closes and the process is also terminated.
The following is a kind of a workaround, for .Net 7, but does not smell nice

Code: Select all
// Workaround for process hang issue detected on PDFX version 10.0.1.380 / .Net 7
while (PxvInst.State != (int)PXV_InstStateFlags.PXV_InstState_ShutDown)
{
PxvInst.Shutdown();
}
-žarko