Click or drag to resize

CefSettingsContextSafetyImplementation Property

By default CEF V8 references will be invalidated (the IsValid() method will return false) after the owning context has been released. This reduces the need for external record keeping and avoids crashes due to the use of V8 references after the associated context has been released. CEF currently offers two context safety implementations with different performance characteristics. The default implementation (value of 0) uses a map of hash values and should provide better performance in situations with a small number contexts. The alternate implementation (value of 1) uses a hidden value attached to each context and should provide better performance in situations with a large number of contexts. If you need better performance in the creation of V8 references and you plan to manually track context lifespan you can disable context safety by specifying a value of -1. Also configurable using the "context-safety-implementation" command-line switch.

Namespace:  Internal.Xilium.CefGlue
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public CefContextSafetyImplementation ContextSafetyImplementation { get; set; }

Property Value

Type: CefContextSafetyImplementation
See Also