ClearScript Library
ClearScript Library
Hi @matvdl, As far as we can tell, ClearScript doesn't invoke `ConvertTypeLibToAssembly` directly. Could you post a stack trace? Thanks!
>Sure - here is the call-stack [...] Hmm, we aren't seeing anything unusual or incorrect in the stack. Given an unknown COM object (one without managed type information), ClearScript has...
Hi @matvdl, Thanks for providing additional information! >The COM API involved is extensive, referencing approximately 10 other COM objects. Ah, so hiding the whole thing behind a strongly typed .NET...
Hi @matvdl, >Thanks for the reply and apologies for the delay in responding. Sure thing, and no problem at all! 😊 >Given our scenario—where we have a large COM library...
By the way, if you're interested in a quick-and-dirty solution that just might work, you could try live-patching ClearScript to bypass the call to `Marshal.GetTypeForITypeInfo`. First, add the [Lib.Harmony](https://www.nuget.org/packages/Lib.Harmony) package...
Hi @matvdl, Friendly reminder: Please let us know if that worked for you. If it did, we'll add a way to bypass that call without patching. Thanks!
Hello @herki18, >It appears that the use of JavaScript proxies is breaking the **inheritance chain** for host-bound objects Not exactly. In the expression `document.appendChild(div)`, the problem is `div`. As a...
Hi @herki18, >Yes, the event handler syntax is the main issue motivating our use of JavaScript proxies. Ah, right. If it were a method instead – say, `setOnClick` – you...
Hello @herki18, > But this does **not** work: > `var targetUnityType = host.type("UnityHtml.UnityHtmlDivElement"); // Fails` The [`type`](https://clearscript.clearfoundry.net/Reference/html/Overload_Microsoft_ClearScript_ExtendedHostFunctions_type.htm) function is a bit of a wrecking ball. For one thing, it allows...
Hi @herki18, Great to hear that you found the example useful! A recommendation: Instead of `getCastedBackendObject`, consider using a host method: ```csharp public static class HostUtil { ... public static...