Page 1 of 1

Anonymous

Posted: Mon Sep 30, 2019 7:00 pm
by dilfich
Creating a browser

Code: Select all

TCefRequestContextRef.New('', '', False, False, False, False);
One action is successful. Delete cookies and repeat the action but the site is firing me(( :(
"close" the browser and create a new one

Code: Select all

CloseBrowser(True);
TCefRequestContextRef.New('', '', False, False, False, False);
The action is successful!
But if I do it often (over9000) it leads to Windows lags. :(
Why is a newly created browser considered "clean"? What else can you do except create a new one every time?
All that can be was I disconnected, except JS.

Re: Anonymous

Posted: Mon Sep 30, 2019 7:26 pm
by salvadordf
Each browser created with a new request context is independent from the previous browsers and it doesn't have the same cookies.

If you create a request context without setting the cache parameter then Chromium uses RAM to store all the resources.

You need to control how much RAM, CPU, etc. your application is using when you create thousands of browsers.

Re: Anonymous

Posted: Mon Sep 30, 2019 8:09 pm
by dilfich
The problem is not in resources, windows starts to fail, the clipboard stops working, the context menu is distorted, perhaps something else, it is not possible to work at the same time and only a reboot helps.

The re-creation may not work for a long time, that's the problem. ((
Cookies I delete, and remains only cache perhaps in this the problem? Is there no solution but to create a new instance every time?

Re: Anonymous

Posted: Tue Oct 01, 2019 6:24 pm
by salvadordf
I'm afraid I can't help you.

It seems that your system can't handle so many browsers. Set a maximum number of browsers and restart your application automatically if necessary.