CefSharp in a WPF app on windows XP

550 views
Skip to first unread message

Yaron David

unread,
Oct 28, 2013, 7:41:13 AM10/28/13
to cefs...@googlegroups.com
Hi Guys,

I am a recent CefSharp user, trying to use it in a WPF app on a win xp machine (yes, I know...).
I have all the DLLs in place

My process runs fine on Win 8.0 (32bit target) but just quits whenever I try to open a window containing the CefSharp component. 
Whenever the code below is all in place - I see no debugging message at all.

Any ideas what's happening?

Tnx,
Yaron 



This is my code:


public partial class BrowserWindow : Window

    {

        private static readonly log4net.ILog log = log4net.LogManager.GetLogger

   (System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);


        private CefSharp.Wpf.WebView m_Browser;


        public BrowserWindow()

        {


            log.Debug("BrowserWindow()");


            InitializeComponent();


            log.Debug("Done InitializeComponent()");


            log.Error("!!!!!! RETURNING");


            try

            {

                log.Debug("Creating cefsharp object");


                m_Browser = new CefSharp.Wpf.WebView();

            }

            catch (Exception e)

            {

                log.Error("Error creating cefsharp: " + e.Message);


                return;

            }


            CefSharp.Settings settings = new Settings();

            settings.CachePath = System.IO.Path.GetTempPath();

            log.Debug("Initializing Cefsharp");

            CEF.Initialize(settings);

            Grid1.Children.Add(m_Browser);

            m_Browser.Address = "http://pubmed.org";

            m_Browser.Visibility = System.Windows.Visibility.Visible;

            m_Browser.Width = Grid1.Width;

            m_Browser.Height = Grid1.Height;

        }

    }


Yaron David

unread,
Oct 29, 2013, 2:03:48 AM10/29/13
to cefs...@googlegroups.com
Worked it out. It was the VC redist 2012 that was missing. :(

Norrapat Nimmanee

unread,
Sep 19, 2014, 3:38:19 PM9/19/14
to cefs...@googlegroups.com
Thank YOU VERY VERY MUCH !!

เมื่อ วันอังคารที่ 29 ตุลาคม ค.ศ. 2013, 13 นาฬิกา 3 นาที 48 วินาที UTC+7, Yaron David เขียนว่า:
Reply all
Reply to author
Forward
0 new messages