Title: ClearScript Excessive COM Type Library Loading · Issue #645 · ClearFoundry/ClearScript · GitHub
Open Graph Title: ClearScript Excessive COM Type Library Loading · Issue #645 · ClearFoundry/ClearScript
X Title: ClearScript Excessive COM Type Library Loading · Issue #645 · ClearFoundry/ClearScript
Description: ClearScript Version: 7.5 .NET Version: 4.6.2 Issue: We are integrating ClearScript into our .NET application, which heavily utilizes COM interop. After adding our primary COM object using AddHostObject, any access from script triggers ex...
Open Graph Description: ClearScript Version: 7.5 .NET Version: 4.6.2 Issue: We are integrating ClearScript into our .NET application, which heavily utilizes COM interop. After adding our primary COM object using AddHostOb...
X Description: ClearScript Version: 7.5 .NET Version: 4.6.2 Issue: We are integrating ClearScript into our .NET application, which heavily utilizes COM interop. After adding our primary COM object using AddHostOb...
Opengraph URL: https://github.com/ClearFoundry/ClearScript/issues/645
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ClearScript Excessive COM Type Library Loading","articleBody":"ClearScript Version: 7.5\n.NET Version: 4.6.2\n\n**Issue:**\nWe are integrating ClearScript into our .NET application, which heavily utilizes COM interop. After adding our primary COM object using AddHostObject, any access from script triggers extensive and repeated calls to TypeLibConverter.ConvertTypeLibToAssembly\n\nThese repeated type library conversions cause significant delays (minutes), and Visual Studio's Modules window shows COM libraries loading multiple times.\n\nWe've already tried:\n1. Using HostItemFlags.DirectAccess — No improvement\n2. Switching to AddCOMObject instead of AddHostObject — No improvement\n3. Ensuring Embed Interop Types is set to false — No improvement\n4. Wrapping objects explicitly using Marshal.CreateWrapperOfType helps initially, but associated COM object accesses trigger the issue again.\n5. We have tried in both the legacy JScript engine and V8 engine - does not seem to make a difference.\n\nQuestions:\nIs there a recommended approach or setting in ClearScript to avoid repeated COM type library loading? It's taking around 5m to load the info and finally return.\n\nAny guidance would be greatly appreciated—thanks!","author":{"url":"https://github.com/matvdl","@type":"Person","name":"matvdl"},"datePublished":"2025-03-10T05:38:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/645/ClearScript/issues/645"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ae46eb33-b529-7053-c15a-2c234a4922fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D61A:EAD4F:1EE496:2A11AD:696FD079 |
| html-safe-nonce | 00f73f9ad3e71135f8c91bd6c81abe124e0c4047043ca106d39d799247a5348f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjFBOkVBRDRGOjFFRTQ5NjoyQTExQUQ6Njk2RkQwNzkiLCJ2aXNpdG9yX2lkIjoiMjUwNjA5MDk3MjIyNjM5NzM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 92095a21ea3634ce604e37146db09c8167cf071f417a8a7664b7aaa8680a9ca3 |
| hovercard-subject-tag | issue:2906138511 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ClearFoundry/ClearScript/645/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b91de5dddbc6c1b91e7c687eb4721810e10844d45a1f315cad76a8f0883b10d9/ClearFoundry/ClearScript/issues/645 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b91de5dddbc6c1b91e7c687eb4721810e10844d45a1f315cad76a8f0883b10d9/ClearFoundry/ClearScript/issues/645 |
| og:image:alt | ClearScript Version: 7.5 .NET Version: 4.6.2 Issue: We are integrating ClearScript into our .NET application, which heavily utilizes COM interop. After adding our primary COM object using AddHostOb... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matvdl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a44b41159f8508d767a50a41d4355b6e6607de801262664cbe75414886e44e9 |
| turbo-cache-control | no-preview |
| go-import | github.com/ClearFoundry/ClearScript git https://github.com/ClearFoundry/ClearScript.git |
| octolytics-dimension-user_id | 232231756 |
| octolytics-dimension-user_login | ClearFoundry |
| octolytics-dimension-repository_id | 90258367 |
| octolytics-dimension-repository_nwo | ClearFoundry/ClearScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 90258367 |
| octolytics-dimension-repository_network_root_nwo | ClearFoundry/ClearScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 347f3ebfaef84b36b267c7a20bade84594f267d5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width