Skip to content

More XP problems #1007

@hvdijk

Description

@hvdijk

Hello,

The CefSharp 39 packages don't work on Windows XP. I'm aware of the FAQ entry, but the problems here aren't covered there.

Most importantly, it just plain bombs. Dependency Walker shows that the problem is that CefSharp.Core.dll refers to GetTickCount64, which is new in Windows Vista. This dependency does not come from the source code, and if I build CefSharp myself instead of using the pre-built packages, there is no reference to GetTickCount64 anywhere. This may be related to one of the updates to Visual Studio.

I will be using the locally built packages for now to avoid this problem, but it would be nice if the official packages could be built without this dependency.

Additionally, a milder issue, the DependencyChecker.IsWindowsXp property doesn't work. Its value is only ever read in the DependencyChecker.CefOptionalDependencies initialiser, but the initialiser will already have run by the time any code gets the chance to set the property value. It seems like it would be easy to make DependencyChecker.IsWindowsXp a read-only property: it can simply check Environment.OSVersion.Version.Major < 6 (optionally in addition to a sanity check -- Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version.Major < 6 -- but clearly the other platforms aren't going to work).

I clean up DependencyChecker.CefOptionalDependencies manually now to work around that problem.

With those changes, it's working nicely for me on XP SP3, .NET Framework 4 and Visual C++ redistributables installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions