Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

Commented Feature: Allow custom locations in V8Proxy.GetDirPaths [34]

$
0
0
I am bundling the ClearScript DLLs as embedded resources in my main application/dll. At runtime I extract ClearScriptV8-XX.dll and v8-xXX.dll to a temporary path (typically Temporary ASP.NET Files) so that they can be loaded from disk.

In order to support this I have added a simple static API which allows adding custom locations returned by V8Proxy.GetDirPaths. It would be ideal if some equivalent functionality were included in the library.

This issue is somewhat related to https://clearscript.codeplex.com/workitem/17
Comments: >V8Proxy specifically invokes LoadLibraryW to bring in the V8 DLL (using paths given by GetDirPaths). Are you saying that is not needed? ​ That's correct; in most cases it isn't needed because the two files are in the same place. V8Proxy does what it does to provide optional support for separate placement, which is very unusual. In your case, if you extract both files into the same temporary folder, your assembly resolution handler will just have to load ClearScriptV8-64.dll. The system will automatically bring in the native V8 DLL and its dependencies, and ClearScript's default loading procedure will be skipped.

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles



Latest Images