Hello, I'm working on a
Traffic Exchange software for my website using CEF :
3.2171.2069, Chromium 39.0.2171.95.For some reason the application becomes unresponsive after 2-3 minutes. The application worked nicely with other frameworks ( Awesomium[huge memory usage], GeckoFx ) but I had to change them because I need some special settings and I couldn't accomplish with those frameworks ( I'm new ) .
Contains 90% of the program, I have a second file, IJsDialogHandler, used to block JS Alert ( I tested the app without this file and the program goes crazy.) Still looking for a solution for POP-UP windows.
private void Browser_Initializer()
{
var settings = new CefSettings();
var currentDirectory = Directory.GetCurrentDirectory();
settings.CefCommandLineArgs.Add("disable-gpu-vsync", "1");
settings.CefCommandLineArgs.Add("disable-gpu", "1");
settings.CachePath = @"" + currentDirectory + "cache";
settings.CachePath = Application.StartupPath;
settings.CefCommandLineArgs.Add("persist_session_cookies", "1");
settings.LogSeverity = LogSeverity.Verbose;
Cef.SetCookiePath(cache_dir, true);
Cef.Initialize(settings);
{
Dock = DockStyle.Fill
};
Controls.Add(browser);
toolStripContainer2.ContentPanel.Controls.Add(browser);
browser.JsDialogHandler = new JsDialogHandler();
Browser = browser;
}
This code is loaded in public Form1() .When the traffic exchange is on, I use Browser.Load(WebURL); to update the URL.
I run over the code again and again, but I just can't find what is wrong.
By unresponsive I mean I can't click on any button, the webpage is stuck, but the program is not in NOT RESPONDING state.
Tested on Personal Computer : ( I5 CPU 4x3.1Ghz, 12 GB RAM) - Windows 7
Tested on Personal Computer : ( Intel Dual Core 3 Ghz. 4 GB Ram ) - Windows 8.1
Tested on VPS : Single Core : 2.1 Ghz CPU with 768 MB Ram - Windows Server 2008