Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

sub processes close slowly when shutdown

Post Reply
tad.chen
Posts: 104
Joined: Fri Jan 04, 2019 1:39 am

sub processes close slowly when shutdown

Post 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!
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: sub processes close slowly when shutdown

Post 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/
tad.chen
Posts: 104
Joined: Fri Jan 04, 2019 1:39 am

Re: sub processes close slowly when shutdown

Post by tad.chen »

Thank you for your information! I'll study it.
Post Reply