Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

New Post: Optional arguments

Currently I'm in the process of migrating my own VBScript ScriptingHost integration to ClearScript. In my implementation the following script-exposed C# code run successfully:public string Foo( string...

View Article


New Post: Optional arguments

OMG, this is so simple. Shame on me! When writing this one:public string Foo( string a, object argument0 = null, object argument1 = null) { // ... } It runs like a charm! I.e. simply using the standard...

View Article


New Post: Optional arguments

We're glad you found a solution! Thanks for posting it!

View Article

New Post: V8Update issue

Hello, Here is the error message I get when running V8Update.cmd. Build mode: Release V8 revision: Tested (r18635, Version 3.24.17) Creating build directory ... Downloading V8 ... Patching V8 ... svn:...

View Article

New Post: V8Update issue

Hi Olivier, Hmm, what version of Subversion are you using? The --ignore-whitespace flag is documented here. You can download an up-to-date Subversion client binary package here. Good luck!

View Article


New Post: XML Doc comments in JS

Hi, I'm using ClearScript to provide extension points in one of our applications. As part of our build process, we're using Doxygen to generate API documentation for internal use. I'm having some...

View Article

New Post: XML Doc comments in JS

Greetings! If we understand correctly, you have a set of JavaScript and C# source files for which you'd like to build a single, merged set of documentation. If that's correct, your question would...

View Article

Created Unassigned: Adding host primitive types [49]

Dear Sir or Madam, I need to be able to pass in primitive types.I cannot use AddHostObject(). Calling AddHostObject() for boxed primitive types (double, int, etc.) raises exception "Invalid host...

View Article


Commented Unassigned: Adding host primitive types [49]

Dear Sir or Madam, I need to be able to pass in primitive types.I cannot use AddHostObject(). Calling AddHostObject() for boxed primitive types (double, int, etc.) raises exception "Invalid host...

View Article


New Post: Cannot load V8-ia32.dll on Pentium III machine

Hi, I am using Clearscript dll in my application and when I try to load it on the Pentium 3 machine, and I get the following error. Cannot load v8-ia32.dll -> it fails at loadAssembly() method. I...

View Article

New Post: Cannot load V8-ia32.dll on Pentium III machine

Hi Anand, ClearScript's C++ project files use default code generation flags, which target CPUs that support SSE2 instructions (Pentium 4 and up). You could try to create a private build that overrides...

View Article

New Post: Possible to add a global function?

Knowing that I can add global instances of host objects to the script engine like this:engine.AddHostObject("random", new Random()); engine.Execute("Console.WriteLine(random.NextDouble())"); I wonder...

View Article

New Post: Possible to add a global function?

Hello UweKeim, Yes, this is possible. Simply add an object of a delegate type: engine.AddHostObject("add", new Func<int, int, int>(delegate(int a, int b) { return a + b; }));You can also use a...

View Article


New Post: Possible to add a global function?

Awesome! You seem to have thought right about everything.

View Article

New Post: Weird Parameter Passing Behavior

Hello! I am just getting started with ClearScript but I am finding some weird behavior when it comes to passing .Net objects (strings, integers) into scripts and then using them to return new values....

View Article


New Post: Weird Parameter Passing Behavior

Hi JC, We've replicated the first issue, and it appears to be a bug in ClearScript. To be honest, we haven't done much testing with VB.NET hosts. In most cases the host language is irrelevant, but...

View Article

New Post: Weird Parameter Passing Behavior

Thanks so much for looking into this. Here is a short code sample to elaborate on my second question. Microsoft.ClearScript.V8.V8ScriptEngine se = new Microsoft.ClearScript.V8.V8ScriptEngine(); //This...

View Article


New Post: Weird Parameter Passing Behavior

Hi again, It looks like the failures in the code samples above are caused by the use of JavaScript return statements outside of a function: engine.Evaluate("return d;"); // error engine.Evaluate("d");...

View Article

New Post: Performance...

Hi - First off: great job on this ClearScript! I have a question about performance when invoking many small script blocks in a web application - short explanation:I have a proprietary language that...

View Article

New Post: Performance...

Hi Jules, Thanks for giving ClearScript a try. A few questions:​How are you measuring performance? For example, are you looking at the average time to process a request, average time within...

View Article
Browsing all 2297 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>