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

New Post: Using ClearScript. WebApplication problem

0
0
I download / recompile and launch everything and the problem is in this instruction inside VBProxy.cs:

hLibrary = NativeMethods.LoadLibraryW(path);

inside this function:


private static bool LoadNativeLibrary()
    {
        var hLibrary = IntPtr.Zero;

        var suffix = Environment.Is64BitProcess ? "x64" : "ia32";
        var fileName = "v8-" + suffix + ".dll";

        var paths = GetDirPaths().Select(dirPath => Path.Combine(dirPath, fileName)).Distinct();
        foreach (var path in paths)
        {
            hLibrary = NativeMethods.LoadLibraryW(path);
            if (hLibrary != IntPtr.Zero)
            {
                break;
            }
        }

        return hLibrary != IntPtr.Zero;
    }
but in one path inside the foreach loop ther is EXACTLY the CORRECT path of dll and then the question is:

Why the LoadLibraryW(path) (or LoadLoalibray(path) because i've tried this too) doesn't load the library?

inside the same source there is:
    private static class NativeMethods
    {
        [DllImport("kernel32", ExactSpelling = true)]
        public static extern IntPtr LoadLibraryW(
            [In] [MarshalAs(UnmanagedType.LPWStr)] string path
        );
    }
and because i have windows 7 32 bit is possible that the problem is linked with the kernel32 some unknown and strange behaviour???????

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images