I’m testing Elements 11.0.0.2675 and the problem seems to remain somehow. It is no longer easily reproducible, I’ve tried with different combinations of objects, arguments and factory methods but to no success. However, my “big” project fails consistently with the following stack trace (I stripped the unnecessary parts):
Uncaught RuntimeError: unreachable executed
res RemObjectsElements.js:267
onTestClick index.html:78
onclick index.html:1
RemObjectsElements.js line 699 > WebAssembly.instantiate:6158988:1
ElementsRaiseException RemObjectsElements.js line 699 > WebAssembly.instantiate:6158988
ms_t10__1sExternalCallse_RaiseExceptionnp_vnp_vno RemObjectsElements.js line 699 > WebAssembly.instantiate:6158767
ms_ta__1sConvert8_ToUInt32no RemObjectsElements.js line 699 > WebAssembly.instantiate:6124128
ms_te__1sWebAssemblye_UnwrapIfNeedednt7__1sTypeno RemObjectsElements.js line 699 > WebAssembly.instantiate:5993114
mi_tnte__1sWebAssembly18__l__g_c____DisplayClass117__l_GetProxyFor_g_b____2nt13__1sEcmaScriptObject RemObjectsElements.js line 699 > WebAssembly.instantiate:5990807
mi_t16__1sWebAssemblyDelegate6_Invokent13__1sEcmaScriptObject RemObjectsElements.js line 699 > WebAssembly.instantiate:5953478
__island_call_delegate RemObjectsElements.js line 699 > WebAssembly.instantiate:6159046
res RemObjectsElements.js:267
onTestClick index.html:78
onclick index.html:1
The exception is still
Exception: RemObjects.Elements.System.ArgumentException: Unknown type for o
Found it! There is a problem with inheritance. If the actual type is returned by the factory method then everything’s fine, if a base type is returned then it fails. See the attached test case.
A similar problem is with method arguments - if a method takes a base type as an argument and you pass a derived type you get the same exception.
Marc, could you provide an estimate on when this problem might be resolved? This one is critical for me. Also, if it’s done before Friday would it be possible to get a private build?