<small id='6oKQa'></small><noframes id='6oKQa'>

      <tfoot id='6oKQa'></tfoot>
      <i id='6oKQa'><tr id='6oKQa'><dt id='6oKQa'><q id='6oKQa'><span id='6oKQa'><b id='6oKQa'><form id='6oKQa'><ins id='6oKQa'></ins><ul id='6oKQa'></ul><sub id='6oKQa'></sub></form><legend id='6oKQa'></legend><bdo id='6oKQa'><pre id='6oKQa'><center id='6oKQa'></center></pre></bdo></b><th id='6oKQa'></th></span></q></dt></tr></i><div id='6oKQa'><tfoot id='6oKQa'></tfoot><dl id='6oKQa'><fieldset id='6oKQa'></fieldset></dl></div>
      <legend id='6oKQa'><style id='6oKQa'><dir id='6oKQa'><q id='6oKQa'></q></dir></style></legend>

          <bdo id='6oKQa'></bdo><ul id='6oKQa'></ul>
      1. 有没有人成功地将免注册 COM 与 .NET 组件一起使用?

        时间:2023-07-25
      2. <i id='lafZd'><tr id='lafZd'><dt id='lafZd'><q id='lafZd'><span id='lafZd'><b id='lafZd'><form id='lafZd'><ins id='lafZd'></ins><ul id='lafZd'></ul><sub id='lafZd'></sub></form><legend id='lafZd'></legend><bdo id='lafZd'><pre id='lafZd'><center id='lafZd'></center></pre></bdo></b><th id='lafZd'></th></span></q></dt></tr></i><div id='lafZd'><tfoot id='lafZd'></tfoot><dl id='lafZd'><fieldset id='lafZd'></fieldset></dl></div>

        <small id='lafZd'></small><noframes id='lafZd'>

          <legend id='lafZd'><style id='lafZd'><dir id='lafZd'><q id='lafZd'></q></dir></style></legend>

              <tbody id='lafZd'></tbody>
              <tfoot id='lafZd'></tfoot>
                <bdo id='lafZd'></bdo><ul id='lafZd'></ul>
                  本文介绍了有没有人成功地将免注册 COM 与 .NET 组件一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  直到最近,我们还在愉快地使用 免注册 COM我们的本机和 .NET COM 组件.然而,我们遇到了一个奇怪的问题,我们的应用程序在 Windows XP SP3 上开始随机崩溃(但不是在 vista 上),因为我们只更改了 .NET 程序集的版本号以从候选发布版移动到发布版.(你不就是讨厌墨菲定律吗?)

                  Until recently, we were happily using registration-free COM for our native and .NET COM components. However, we ran into a weird issue where our application started crashing randomly on windows XP SP3 (but not on vista) after we only changed the version number of a .NET assembly to move from release candidate to release. (Don't you just hate Murphy's law?)

                  经过许多人日和磨牙,我们发现问题是 sxs 中的一个已知错误.dll 在检索有关 .NET 类的信息时会导致堆损坏.有一个热修复程序可以使问题消失,但热修复程序不打算重新分发.

                  After many a lost man-day and teeth grinding, we discovered that the issue was a known bug in sxs.dll which causes heap corruption when retrieving information about a .NET class. There is a hot-fix which makes the issue disappear but hot-fixes are not intended to be redistributed.

                  我们有点难过,免注册 COM 实现中存在如此可怕的错误.有没有人成功地为 .NET 组件使用免注册 COM?您是如何解决这个问题的?

                  We're kinda stumped that there is such a horrible bug in the registration-free COM implementation. Is anyone out there successfully using registration-free COM for .NET components? How did you work around this issue?

                  推荐答案

                  这个问题与SxS如何计算类信息的大小有关.程序集的版本号是此信息的一部分.

                  This issue is related to how SxS calculates the size of the class information. The version number of the assembly is part of this information.

                  由于它使用的是候选发布版本号,也许您的解决方法是使发布的版本号与 RC 版本的长度相同.

                  Since it was working with the release candidate version number, perhaps the workaround for you is to make the version number of the release the same length as the RC release.

                  如果这对您不起作用,则有一个既定流程可以请求修补程序的再分发权限.我会聘请 Microsoft 客户支持来寻求这条路线.

                  If this doesn't work for you, there is an established process for requesting redistribution rights for hotfixes. I would engage Microsoft customer support to pursue this route.

                  这篇关于有没有人成功地将免注册 COM 与 .NET 组件一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:为什么使用 FinalReleaseComObject 而不是 ReleaseComObject? 下一篇:无法从 VBA 实例化用 C# 编写的 COM 对象(VB6 ok)

                  相关文章

                    <small id='enAhS'></small><noframes id='enAhS'>

                    1. <tfoot id='enAhS'></tfoot>
                        <bdo id='enAhS'></bdo><ul id='enAhS'></ul>
                      <legend id='enAhS'><style id='enAhS'><dir id='enAhS'><q id='enAhS'></q></dir></style></legend>
                    2. <i id='enAhS'><tr id='enAhS'><dt id='enAhS'><q id='enAhS'><span id='enAhS'><b id='enAhS'><form id='enAhS'><ins id='enAhS'></ins><ul id='enAhS'></ul><sub id='enAhS'></sub></form><legend id='enAhS'></legend><bdo id='enAhS'><pre id='enAhS'><center id='enAhS'></center></pre></bdo></b><th id='enAhS'></th></span></q></dt></tr></i><div id='enAhS'><tfoot id='enAhS'></tfoot><dl id='enAhS'><fieldset id='enAhS'></fieldset></dl></div>