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

New Post: Memory consumption

Wow, reply on sundays. Thank you. I don't assume a bug in clearscript, this is why I posted in the discussions forum not on the issue list. I uploaded the project to bitbucket:...

View Article


New Post: Memory consumption

Hi Joachim, Thanks for posting your project. It looks like you're employing quite a sophisticated mix of technologies - exactly the sort of ClearScript usage we're hoping to enable. We're taking a...

View Article


New Post: Using ClearScript. WebApplication problem

I encountered the error caused by LoadAllAssembliesFromAppDomainBinDirectory trying to load every single assembly in the bin directory (as its name suggests!). But I found that I could stop ASP.NET...

View Article

New Post: Using ClearScript. WebApplication problem

Hi danielearwicker, Thanks you very much for posting your findings! Cheers!

View Article

Image may be NSFW.
Clik here to view.

New Post: Very simple app - apparent memory leak

Hi - I'm sure I'm doing something wrong here, as there is no way this kind of issue could slip through your tests... I added clearscript to a complex application I develop, and had major memory...

View Article


New Post: typeof operator on a .NET method returns "object" - is that correct?

Hi, Using ClearScriptConsole, I find:-> host.Where [HostMethod:Where] -> typeof host.Where object That is, a method on a host object is not reported to be a "function", even though it can be...

View Article

New Post: Very simple app - apparent memory leak

Hi Simon, Yes, we also discovered this (very recently) and posted a potential fix. The issue affects applications that repeatedly create script engine instances (of any type) and use them to run...

View Article

New Post: typeof operator on a .NET method returns "object" - is that correct?

Hi danielearwicker, What you're seeing is correct. Host objects can't masquerade as JavaScript functions. For JSON there are several possibilities. For example, you could add a custom toJSON() method...

View Article


New Post: How to loop through IEnumerable in javascript

Hello ClearScript, I have a host object ProductManager and it provides a function to search products:public IEnumerable<Product> Search(string condition); How can I loop through the IEnumerable...

View Article


New Post: Microsoft languages

Hi, can you implement Microsoft languages like js.net c# vb.net?

View Article

New Post: Memory consumption

Hey, I tried to reproduce with a simple combination of DataFlow and Clearscript. But I was not able to reproduce the memory leaking behavoir. So I will try to lock down the problem any further. On...

View Article

New Post: Using ClearScript. WebApplication problem

Another observation: SQL Compact for .NET places only the architecture-neutral API assembly in the normal load path (e.g. webapp\bin). It has x86 and x64 subdirectories (e.g. webapp\bin\x86) for...

View Article

New Post: How to loop through IEnumerable in javascript

Greetings! You should be able to use the IEnumerable interface directly. For example:var results = productManager.Search('price > 100'); var enumerator = results.GetEnumerator(); while...

View Article


New Post: Microsoft languages

Hi furesoft, Please clarify your question. ClearScript aims to integrate existing script language interpreters with .NET. Implementing script language interpreters is not its goal. Cheers!

View Article

New Post: Memory consumption

Hi Joachim,​ On wednesday someone also reported a memory leak and you proposed a fix. Could that be somehow connected?​ To reproduce that memory leak the application has to (a) repeatedly instantiate...

View Article


New Post: Enriching an object in script = object disposed exception?

Hi, Probably doing something stupid, but in my host app I have an object, which I pass into the script engine. The script then adds some new properties to it (it's a dynamic), then the engine is...

View Article

New Post: Enriching an object in script = object disposed exception?

Hi Tony, Your code above creates a property (named "someNewProperty") whose value is a script object. Fundamentally, a script object is not a standalone object; it can be considered a sort of reference...

View Article


Source code checked in, #1d9a59279c1a4ebedbab3c4eac90dfbd7c3f7d6d

V8ScriptEngine performance: Don't use a continuation timer when no callback is specified, don't marshal script results to be discarded in ScriptEngine.Execute().

View Article

New Post: Memory consumption

Hello, just to close this thread, I was able to find a solution, which does not produce a memory leak: Instead of using AddHostObject, I used ScriptEngines Script property to hand over data to the...

View Article

New Post: Enriching an object in script = object disposed exception?

Thanks kindly - that's sorted it :)

View Article
Browsing all 2297 articles
Browse latest View live