Calling .NET object returned from method call

Dec 16, 2009 at 1:48 AM

I have a small script which does the following:

var temp = new MyProject.External();

When I code my script in tihs way, everything works.  But if I instead do this:

var temp = getExternal();

Where getExternal is a function I added to the engine to simply return an instance of External, then the Hello() method is never called.  Is there some limitation on calling methods on .NET objects returned from another method call?  Is there any way around this?

Dec 16, 2009 at 9:19 AM

Which version of the source code are you using ? The released one, or the official svn one ? There has been a LOT of changes since then, a release will follow very soon.

Dec 16, 2009 at 4:20 PM

I'm using the relesed version.  Do you recommend changing to the current sources?  I managed to work around the above by tweaking ClrFunction.Execute to return a JsValue if the result of the delegate is a ValueType, or a JsClr object if not.