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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Anonymous

Post Reply
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Anonymous

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

Re: Anonymous

Post 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.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Anonymous

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

Re: Anonymous

Post 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.
Post Reply