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

New Post: problem with backgroundworker

I am using the Microsoft.ClearScript.Windows.VBScriptEngine object. I have it inside a large class. Everything runs just great until I call one of the class's functions with a backgroundworker. In that...

View Article



New Post: problem with backgroundworker

Had an aha moment and thought declaring WofkflowVBS static would save the day. No joy.

View Article

New Post: problem with backgroundworker

Hello notahack, Windows script engines (JScript/VBScript) have thread affinity; that is, each instance can only be accessed on the thread that created it. ClearScript supports this requirement by...

View Article

New Post: problem with backgroundworker

that worked but not for all situations. When I am running with in the ide or a compiled program with a visual interface that worked. Take the same code and put it into a windows application that I am...

View Article

New Post: problem with backgroundworker

Hi again, Can you elaborate on "it bombs"? If the target thread is waiting for keyboard input via System.Console.ReadLine() or something like that, then invoking through the dispatcher should block. If...

View Article


New Post: problem with backgroundworker

On second thought maybe it didn't "bomb", i.e. generate a run time error, since my error trapping didn't trap anything. Instead I think it ran the line WorkflowVBS.Dispatcher.Invoke(new Action(() =>...

View Article

New Post: Null characters in strings not passed between host and script

Hi, It seems that null characters in strings, that are valid in both .Net and JavaScript, are not passed between host and script in both directions. For example:class StringTest { public static int...

View Article

New Post: Working with dynamic .NET objects

Hi ClearScript, I would like to work with dynamic .NET objects, i.e. the following way public class MyDynamicObject : DynamicObject { public override bool TryInvokeMember(InvokeMemberBinder binder,...

View Article


New Post: problem with backgroundworker

Hi notahack,​ and just hanged. Is that possible?​ Yes, absolutely. For synchronous invocation, the calling thread must wait until the target thread is done executing the call. In your case, the target...

View Article


New Post: Null characters in strings not passed between host and script

Hi Ron, You're right. A fix is on the way. Cheers!

View Article

New Post: Working with dynamic .NET objects

Hello Torsten, For this to work, your class must implement DynamicObject.GetDynamicMemberNames(). For example:publicoverride IEnumerable<string> GetDynamicMemberNames() { yieldreturn"AnyMethod";...

View Article

Created Issue: Strings with embedded null characters are not marshaled...

If a .NET or V8 string has an embedded null character, ClearScript truncates it during marshaling.

View Article

New Post: Working with dynamic .NET objects

That works. Thanks a lot! Torsten

View Article


New Post: A bit more modularization

Hello ClearScript, is there any option for a bit more modularization? As far as I can see, Compile, Evaluate and Execute are additionaly so that with each call the JavaScript Code is a bit bigger. What...

View Article

New Post: A bit more modularization

Hi Torsten, You appear to be concerned about unrelated scripts leaving functions and other objects around, eventually leading to a cluttered and unpredictable execution environment for subsequent...

View Article


Created Unassigned: Throw specific script exception by host [43]

Hi,Would it be possible to add a custom exception, so that when it is thrown by host it throws a script exception of the specified type and message.For example, in host code:```throw new...

View Article

Commented Unassigned: Throw specific script exception by host [43]

Hi,Would it be possible to add a custom exception, so that when it is thrown by host it throws a script exception of the specified type and message.For example, in host code:```throw new...

View Article


Closed Unassigned: Throw specific script exception by host [43]

Hi,Would it be possible to add a custom exception, so that when it is thrown by host it throws a script exception of the specified type and message.For example, in host code:```throw new...

View Article

Edited Feature: Throw specific script exception by host [43]

Hi,Would it be possible to add a custom exception, so that when it is thrown by host it throws a script exception of the specified type and message.For example, in host code:```throw new...

View Article

Edited Issue: Package restore not working [41]

Add the nuget package for Clearscript V8 to a solution, build solution this completes with no errors.Remove folder packages\ClearScript.V8.5.3.10.0, build solution this restores and completes with no...

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images