代码之家  ›  专栏  ›  技术社区  ›  Brett Rigby

DLL可以注册/注销的最大次数?

  •  0
  • Brett Rigby  · 技术社区  · 17 年前

    在特定时间段内,DLL可以注册和注销的最大次数是多少?

    1. 注册dll(在NAnt中
    2. 构建项目
    3. 发布输出.dll或.exe 安全的地方

    [comregister] Unregistering 1 files
    [comregister] c:\location\myBuild.include(301,4): Error while unregistering 'c:\\[project-location]\lib\myDependentDLLFile.dll' Unable to find an entry point named '**DllUnregisterServer**' in DLL 'c:\\[project-location]\lib\myDependentDLLFile.dll'.
    

    (不过我不知道“DllUnregisterServer”是从哪里来的!)

    我通过在NAnt内部的comregister调用中使用failonerror=“false”属性来缓解这种情况,但这让我怀疑这是否可以。..!

    2 回复  |  直到 17 年前
        1
  •  1
  •   Paul Mitchell    17 年前

        2
  •  0
  •   Bhaskar    17 年前

    我认为DLL注册/注销的数量没有任何限制。

    推荐文章