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

        <tfoot id='zYHUM'></tfoot>

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

      1. DllMain 附加和分离过程中的使用限制

        Usage limitations during the DllMain Attach and Detach process(DllMain 附加和分离过程中的使用限制)
        • <bdo id='0du06'></bdo><ul id='0du06'></ul>
          <legend id='0du06'><style id='0du06'><dir id='0du06'><q id='0du06'></q></dir></style></legend>
        • <small id='0du06'></small><noframes id='0du06'>

            <tfoot id='0du06'></tfoot>
              <tbody id='0du06'></tbody>

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

                  本文介绍了DllMain 附加和分离过程中的使用限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的一位同事在 DllMain Detach 过程中遇到了麻烦.他的错误似乎并非在所有情况下都会出现,但相当频繁.

                  One colleague of mine has troubles during the DllMain Detach process. His bug seems not to appear in all cases, but fairly often.

                  在尝试帮助他的过程中,我想起了一些在 DllMain 附加和分离过程中的使用限制,但我不确定我是否记得清楚,因为这是 2 年前的技术讨论并且不是我在处理那些终止问题.

                  While trying to help him, I kind of remembered of some usage limitations during the DllMain Attach and Detach process, but I am not sure I remember well since it was 2 year old technical discussions and it was not me working on thoses termination issues.

                  也就是说,我记得我们应该:

                  Namely I kind of remember that we should:

                  • 避免使用 new 和 delete 运算符,更喜欢 HGLOBAL 内存分配
                  • 避免在此处处理线程终止.

                  如果我错了,你能不能纠正我,解释一下,或者指出一篇可以解决这些问题的技术文章.

                  Could you correct me if I am wrong, explain me if ever, or point to a technical article that would deal with these issues.

                  推荐答案

                  避免调用 LoadLibrary 和相关 API.

                  Avoid calling LoadLibrary and related APIs.

                  除了 Steve 的链接之外,这里还有一些来自 Raymond Chen 的The Old New Thing:

                  In addition to Steve's link, here are some good relevant posts from Raymond Chen's The Old New Thing:

                  • https://devblogs.microsoft.com/oldnewthing/20040127-00/?p=40873
                  • https://devblogs.microsoft.com/oldnewthing/20040128-00/?p=40853
                  • https://devblogs.microsoft.com/oldnewthing/20070904-00/?p=25283
                  • https://devblogs.microsoft.com/oldnewthing/20100115-00/?p=15253

                  这篇关于DllMain 附加和分离过程中的使用限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?(静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么?)
                  How do I load a C DLL from the SXS in Python?(如何从 Python 中的 SXS 加载 C DLL?)
                  Can Cython code be compiled to a dll so C++ application can call it?(Cython 代码可以编译成 dll 以便 C++ 应用程序可以调用它吗?)
                  Delay Loading DLLs(延迟加载 DLL)
                  Throwing C++ exceptions across DLL boundaries(跨 DLL 边界抛出 C++ 异常)
                  Loading a dll from a dll?(从 dll 加载 dll?)

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

                  <tfoot id='6fxmf'></tfoot>
                    <tbody id='6fxmf'></tbody>
                • <legend id='6fxmf'><style id='6fxmf'><dir id='6fxmf'><q id='6fxmf'></q></dir></style></legend>

                            <bdo id='6fxmf'></bdo><ul id='6fxmf'></ul>

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