Page 1 of 1

sub processes close slowly when shutdown

Posted: Thu Nov 12, 2020 3:55 am
by tad.chen
I made a OSR browser based on CEF library 7X.X.X.X.

I find its sub processes close slowly when computer is shutdown and browser is still running in a Win7 64bit station. Sub processes close one by one, each close takes about 3~4 seconds. So I wait a long time for shutdown operation.

But In other computers It can close quickly.

I don't know the reason. Could you give me some advise?

Thank you!

Re: sub processes close slowly when shutdown

Posted: Thu Nov 12, 2020 9:13 am
by salvadordf
The subprocesses are handled internally by Chromium.

All we can do is to follow the destruction steps described in the code comments of the demos to close the application as soon as the user tries to close the application or the application receives the WM_QUERYENDSESSION and WM_ENDSESSION messages because Windows is closing the user session.

This thread has more information about the Windows shutdown that might be useful :
https://en.delphipraxis.net/topic/2834- ... -shutdown/

Re: sub processes close slowly when shutdown

Posted: Fri Nov 13, 2020 7:10 am
by tad.chen
Thank you for your information! I'll study it.