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

Closed Issue: [FIXED] Memory leak with shared V8 runtimes [107]

Repeated calls to `V8Runtime.CreateScriptEngine` make the runtime's heap grow even if the engine instances are disposed immediately. This is because the `V8ContextImpl` destructor neglects to to...

View Article


Updated Wiki: Home

Description ClearScript is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (via V8 and JScript) and VBScript.FeaturesSimple usage; create a...

View Article


New Post: Intermittent crash on IIS and IISExpress

I have a weird issue, ClearScript sometimes crashes the application pool when used intensively in my web application. I got a dump file and opened it in Visual Studio but I'm missing the symbols file...

View Article

New Post: Intermittent crash on IIS and IISExpress

Greetings! The symbol file may not be useful unless it matches the assembly precisely. It would have to have been generated from the same source code and with the same compiler version, identical...

View Article

New Post: Intermittent crash on IIS and IISExpress

Hi, Thank you for your answer. I was wondering the same thing about the pdb but unfortunately I failed to build v8 (the build script reports a failed step but there's no other information). I'll try to...

View Article


New Post: Intermittent crash on IIS and IISExpress

HI guillaume, this might be the same issue that we are getting - but only with versions of ClearScript after 5.4.3. Could you try and see if you get the same issue after downgrading?

View Article

New Post: Intermittent crash on IIS and IISExpress

Hi, I'm trying the downgrade, thanks for the tip.

View Article

New Post: Intermittent crash on IIS and IISExpress

HI again Andrea, It looks like it works, thanks a lot. I'll not be 100% sure before letting my app run for few days but my attempts to manually trigger the issue do not work on that version, seems...

View Article


New Post: Intermittent crash on IIS and IISExpress

Hi guillaume86, Thanks for sharing your crash dump! Although we couldn't symbolize most of the crash stack without matching PDBs, a VCRT symbol at the very top provided a strong clue. We'll post a...

View Article


New Post: Intermittent crash on IIS and IISExpress

Thanks, I'll run your new version locally to confirm (at 99%) that the problem is gone, and if not I'll try again to build it myself to provide the call stack. Unfortunately I was unable to isolate the...

View Article

New Post: Intermittent crash on IIS and IISExpress

Hi guillaume86, A potential fix has been posted here. Please give it a try if you get a chance. Cheers!

View Article

Source code checked in, #df2b7256358171f3755da67b51de889a16d1755c

Hardened native timers and V8 background tasks, potentially fixing reported intermittent V8 crashes. Tested with V8 5.1.281.65.

View Article

New Post: Waiting for input

Hey everyone. I'm developing a game server for a game client and I needed a scripting interface to use for NPCs, so I tried using ClearScript, however I came into an issue. First, here's an example of...

View Article


New Post: Using methods in a script

Hey everyone. I'm working on a game server for a game client and I'm using ClearScript as my scripting interface. I have an abstract class called 'ScriptBase' and classes that inherit from it:...

View Article

New Post: Using methods in a script

Hello, Fraysa! There are many ways to do this. Here's one possibility:publicabstractclass ScriptBase { protected ScriptEngine _engine { get; privateset; } privatestring _code; publicvirtualvoid Run() {...

View Article


New Post: Waiting for input

Hi Fraysa, Like any other code, script code can invoke modal or blocking APIs. Your SendYesNo function could be made to await user input before returning to its (script-based) caller; in fact, its...

View Article

New Post: Exception propagation from C# to Javascript

Hi, I have a number of C# host objects added into the engine. In case of exception within C#, the exception caught in the javascript has message as "Exception has been thrown by the target of an...

View Article


New Post: Exception propagation from C# to Javascript

Hello maicalal, Which JavaScript engine are you using (V8 or JScript)? Thanks!

View Article

New Post: Exception propagation from C# to Javascript

V8

View Article

New Post: Exception propagation from C# to Javascript

Hi again, When you use V8, ClearScript marshals host exceptions to script code. In the above, the host exception should be accessible via err.hostException. Note that this is likely to be an instance...

View Article
Browsing all 2297 articles
Browse latest View live


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