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

New Post: I get memory leaks without running CollectGarbage

Is there a way to ensure collection of this reference without calling CollectGarbage? can I dispose that individual reference perhaps?

View Article



New Post: access indexer of a hosted object

Hi krisoye, How about something like this:publicclass Map : DynamicObject, IEnumerable { privatereadonly IDictionary<string, object> dict = new Dictionary<string, object>(); private IList...

View Article

New Post: access indexer of a hosted object

Oh facepalm I swore I tried something like that. Thank you so much! Works great! Go-go Micorsoft ClearScript! I have now successfully loaded jQuery into my fledgling browser! Woot!

View Article

New Post: I get memory leaks without running CollectGarbage

Sorry, are you asking about ensuring collection of a managed object that you've passed into the script engine?

View Article

New Post: I get memory leaks without running CollectGarbage

Correct, I am basically wanting to perform my original code sample without leaking code and without having to take the hit of calling CollectGarbage(true) on every call like so: loop { // this loop...

View Article


New Post: I get memory leaks without running CollectGarbage

Hi Stefan, A few thoughts:​ Calling CollectGarbage() every time is almost certainly overkill. Yes, it causes the script engine to release managed objects it's no longer holding, but those objects will...

View Article

New Post: dictionary returns undefined

dictionary returns undefined but the item existpublic class Get : Dictionary<string, string> ... var b = _GET["blub"]; thanks for help

View Article

New Post: dictionary returns undefined

Hi furesoft, For standard .NET dictionaries, the following should work:var b = _GET.Item.get('blub'); // _GET.Item('blub') also works but is not preferred _GET.Item.set('blub', foo);Another possibility...

View Article


New Post: dictionary returns undefined

but another problem is, the get class is in another assembly than the scripting assembly, the assemblys cannot be referenced, because its a plugin and i replaced the dictionary with property bag but...

View Article


New Post: dictionary returns undefined

In our testing, the following works as expected:var bag = new PropertyBag(); bag["blub"] = 123.456; engine.AddHostObject("bag", bag); Debug.Assert(engine.Evaluate("bag['blub']").Equals(123.456));If...

View Article

New Post: dictionary returns undefined

im parsing the query of the requesting url, and add the Get class instance to the engine

View Article

New Post: dictionary returns undefined

Can you provide any details? We can't help if we can't reproduce the problem. Possibly useful might be the relevant parts of the Get class you're using and the code that populates it and exposes it to...

View Article

Reviewed: ClearScript 5.4 (Jan 02, 2015)

Rated 5 Stars (out of 5) - Nice improvements, appears to work well with all my existing tests.

View Article


New Post: dictionary returns undefined

engine.Add("_GET", Get.Create(p)); public static PropertyBag Create(HttpProcessor p) { var props = new PropertyBag(); var uri = new Uri("htt://localhost" + p.http_url); var q = uri.Query; foreach (var...

View Article

New Post: dictionary returns undefined

ive fixed, i have used the map class from another discussion

View Article


New Post: dictionary returns undefined

Glad to hear it furesoft, but PropertyBag really should be sufficient for this purpose. We don't have your HttpProcessor class, but if we modify the Create method as follows:publicstatic PropertyBag...

View Article

Created Unassigned: MetaScriptItem doesnt override GetDynamicMemberNames [64]

the base implantation of DynamicMetaObject just returns an empty string array.advise using doing something like what dynamic object does``` public override IEnumerable<string>...

View Article


Edited Issue: MetaScriptItem doesnt override GetDynamicMemberNames [64]

the base implantation of DynamicMetaObject just returns an empty string array.advise using doing something like what dynamic object does``` public override IEnumerable<string>...

View Article

Commented Issue: MetaScriptItem doesnt override GetDynamicMemberNames [64]

the base implantation of DynamicMetaObject just returns an empty string array.advise using doing something like what dynamic object does``` public override IEnumerable<string>...

View Article

New Post: Elevated library layer

hi I want to use ClearScript to implement a small JavaScript plugin environment. Now I would like to implement a JavaScript library layer which has access to security relevant host functionality while...

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images