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

New Post: Problem with nullable property of object

can't handle the case where person.Name returns nothing, and that's because nothing is a special object reference that requires a set statement rather than simple assignment. Is that your...

View Article



New Post: Problem with nullable property of object

OK, so:​ The problem occurs only when MarshalNullAsDispatch is in effect. Host members (fields, properties, methods) that return strings should overrideMarshalNullAsDispatch and marshal null return...

View Article

New Post: Problem with nullable property of object

If all of that is correct, what other return types should override MarshalNullAsDispatch? One thing that comes to mind is nullable numerics such as int?. Anything else? Only host members with strongly...

View Article

New Post: Problem with nullable property of object

Hi ifle,​ Only host members with strongly typed objects that derive from the Object class with specific reference type can return DispatchWrapper(null) in case of null. ​ Well, not quite, because that...

View Article

New Post: Problem with nullable property of object

Null in .NET and Null in VbScript are not similar things. Suppose you have code that concatenate strings and one of them is null. In case of VBScript the result string is null (because ClearScript...

View Article


New Post: Problem with nullable property of object

Hi ifle, Our view is that these issues are simply the result of bringing together two very different object models. It isn't just a matter of null having different meanings. Strings, for example, are...

View Article

New Post: Problem with nullable property of object

I understand that, It's not simply and I really really appreciate your great work. We convert very big module in legacy application to .NET and will bring together 3 different worlds (.NET, VBScript,...

View Article

New Post: Problem with nullable property of object

If we understand correctly, standard .NET marshaling is wrong for your original scenario at the top of this thread, because it always turns .NET null into VBScript empty, whereas your script code...

View Article


New Post: Problem with nullable property of object

Right, sorry about the confusion. In any case, our planned change should provide the behavior you need when MarshalNullAsDispatch is enabled. Thanks again!

View Article


Created Unassigned: Memory leak using delegates [48]

Hi,It seems V8 engines are not garbage collected if a script uses a host delegate.``` public class MyClass{} static void DelegateTest(){ List<WeakReference> enginesWithObject = new...

View Article

New Post: Passing an array in Clearscript to a C# object

Hi, I have a c# object I'm adding to the clearscript V8 engine that looks like this: public class Helpers{ ... public int NTimes(int[] values, int targetValue) { int answer = 0; if (values != null) {...

View Article

New Post: Passing an array in Clearscript to a C# object

Hi, I just wanted to point out that I found a solution... Here is the modifed NTimes function: public int NTimes(dynamic values, int targetValue) { int answer = 0; List<int> intVals = new...

View Article

Edited Issue: Memory leak using delegates [48]

Hi,It seems V8 engines are not garbage collected if a script uses a host delegate.``` public class MyClass{} static void DelegateTest(){ List<WeakReference> enginesWithObject = new...

View Article


Commented Issue: Memory leak using delegates [48]

Hi,It seems V8 engines are not garbage collected if a script uses a host delegate.``` public class MyClass{} static void DelegateTest(){ List<WeakReference> enginesWithObject = new...

View Article

New Post: Passing an array in Clearscript to a C# object

Thanks for posting your solution!

View Article


Commented Issue: Memory leak using delegates [48]

Hi,It seems V8 engines are not garbage collected if a script uses a host delegate.``` public class MyClass{} static void DelegateTest(){ List<WeakReference> enginesWithObject = new...

View Article

Edited Issue: [FIXED] Memory leak using delegates [48]

Hi,It seems V8 engines are not garbage collected if a script uses a host delegate.``` public class MyClass{} static void DelegateTest(){ List<WeakReference> enginesWithObject = new...

View Article


Commented Issue: [FIXED] Memory leak using delegates [48]

Hi,It seems V8 engines are not garbage collected if a script uses a host delegate.``` public class MyClass{} static void DelegateTest(){ List<WeakReference> enginesWithObject = new...

View Article

New Post: Problem with nullable property of object

The update is now available. Cheers!

View Article

New Post: Returning a derived type with VBScript

We've posted an update that includes the new property ScriptEngine.DisableTypeRestriction for controlling this behavior at the engine level.

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images