New Post: What is correct option to use ClearScript.V8 as NuGet package?
Hello Ciget! It sounds like you've set everything up correctly. You're just trying to run your project in IIS Express on your VS 2013 machine, right? Please make sure that copies of those DLL files do...
View ArticleNew Post: Calling VBScript function by dispatchId
Hello! ClearScript does not support invocation of script items via dispatch ID. However, the VBScript functions have names, right? Why not use them? We're guessing that the Delphi application had no...
View ArticleNew Post: Calling VBScript function by dispatchId
This application wrote before years. I think dispatch id is used for performance reason. The application allows to customize specific business model, extend and interact with application, it uses...
View ArticleNew Post: Cannot get property of a derived class
Consider I have the following classes public class Element { public Location Location { get; set; } } public class Location { public string Name { get; set; } } public class LocationPoint : Location {...
View ArticleNew Post: Cannot get property of a derived class
Here's a quick hack, in HostItem class, changetarget.Type.GetScriptableProperty(name, invokeFlags, bindArgs); totarget.Target.GetType().GetScriptableProperty(name, invokeFlags, bindArgs); That way, it...
View ArticleNew Post: Cannot get property of a derived class
Hi ravetam! Great question. This may be an example of ClearScript behaving a little too much like C# :) The expression you're evaluating, e.Location.Point, doesn't compile in C#, and it doesn't work in...
View ArticleNew Post: Cannot get property of a derived class
Thanks for the detailed explanation. I should have run the unit test first. The second solution seems to work but the problem is, the class library has to reference Clearscript. If I were to disable...
View ArticleNew Post: Cannot get property of a derived class
If I were to disable this check at all (IsRestrictedForScript always returns false), would I run into any issue? It depends on the design of the .NET API you're calling from script code. In general...
View ArticleCommented Issue: [V8 bug] Issue with memory leaking scripts: 5.3.9 vs 5.3.10...
Hi everybody,I just noticed a behavior that differs between ClearScript v 5.3.9 and 5.3.10, and it's about limiting memory for a script execution. Consider following faulty script (it emulates a memory...
View ArticleNew Post: Calling VBScript function by dispatchId
So at startup the application looks up dispatch IDs by name and caches them for invocation purposes. Is that correct? Again, we're not sure it makes sense to expose dispatch IDs in ClearScript. The...
View ArticleNew Post: Calling VBScript function by dispatchId
Thanks for your answers. Can you more explain why for .NET application calling by name to be negligible? About thread-safe I know, that a reason why in our legacy code there is a logic that check...
View ArticleCommented Issue: [V8 bug] Issue with memory leaking scripts: 5.3.9 vs 5.3.10...
Hi everybody,I just noticed a behavior that differs between ClearScript v 5.3.9 and 5.3.10, and it's about limiting memory for a script execution. Consider following faulty script (it emulates a memory...
View ArticleCommented Issue: [V8 bug] Issue with memory leaking scripts: 5.3.9 vs 5.3.10...
Hi everybody,I just noticed a behavior that differs between ClearScript v 5.3.9 and 5.3.10, and it's about limiting memory for a script execution. Consider following faulty script (it emulates a memory...
View ArticleNew Post: Calling VBScript function by dispatchId
Can you more explain why for .NET application calling by name to be negligible? Invoking a VBScript function from .NET is relatively expensive, as the ClearScript and COM interop layers incur a lot...
View ArticleCommented Issue: [V8 bug] Issue with memory leaking scripts: 5.3.9 vs 5.3.10...
Hi everybody,I just noticed a behavior that differs between ClearScript v 5.3.9 and 5.3.10, and it's about limiting memory for a script execution. Consider following faulty script (it emulates a memory...
View ArticleNew Post: Cannot get property of a derived class
Actually, I wanted it to look more "Javascript" coding style. Anyway, from my unit test, my script still works after the changes. Thanks again. I'll keep "the casting issue" in mind.
View ArticleNew Post: Cannot get property of a derived class
Right, automatic type restriction is a relatively new feature in ClearScript, designed to facilitate access to esoteric .NET APIs. We agree that for simple APIs that rely on polymorphism, turning it...
View ArticleCommented Issue: [V8 bug] Issue with memory leaking scripts: 5.3.9 vs 5.3.10...
Hi everybody,I just noticed a behavior that differs between ClearScript v 5.3.9 and 5.3.10, and it's about limiting memory for a script execution. Consider following faulty script (it emulates a memory...
View ArticleNew Post: How to change the Global Object to another object?
Just like in Chrome,the Global object is "window".the code: var i=100; if(window.i==100) //this is true { ..... }
View Article