I am using Xilium.CefGlue. I am currently testing the functionality of the library in WPF application. I have added GetZoom() method that looks like that:
- Code: Select all
public double GetZoom()
{
double zoom = 0.0;
_mainUiDispatcher.Invoke(DispatcherPriority.Normal, new Action(delegate
{
if (_browser != null)
{
_browserHost = _browser.GetHost();
zoom = _browserHost.GetZoomLevel();
}
}));
return zoom;
}
GetZoomLevel is using public static double get_zoom_level(cef_browser_host_t* self)
Application fails on return statement return d(self);
Outputs:
3.5 Client Profile
'Xilium.CefGlue.Samples.WpfOsr.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'
The program '[10504] Xilium.CefGlue.Samples.WpfOsr.exe: Program Trace' has exited with code 0 (0x0).
The program '[10504] Xilium.CefGlue.Samples.WpfOsr.exe: Managed (v2.0.50727)' has exited with code -1073740940 (0xc0000374).
4.5
'Xilium.CefGlue.Samples.WpfOsr.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll'
The program '[7204] Xilium.CefGlue.Samples.WpfOsr.exe: Program Trace' has exited with code 0 (0x0).
The program '[7204] Xilium.CefGlue.Samples.WpfOsr.exe: Managed (v4.0.30319)' has exited with code -2147483645 (0x80000003).
Anyone experiencing this kind of issue?
Thank you!
P.S. Set zoom is working perfectly fine.