raygenyang
V2EX  ›  Node.js

nodejs 编写 c++插件,调用第三方 dll 时申请的内存应该如何释放呢?

  •  
  •   raygenyang · May 3, 2020 via Android · 5662 views
    This topic created in 2229 days ago, the information mentioned may be changed or developed.
    第三方的 dll 提供了 AddRef 和 Release 用于管理引用计数。
    2 replies    2020-05-20 13:16:57 +08:00
    hua123s
        1
    hua123s  
       May 14, 2020
    爹爹 你是用 ffi 调用还是 napi 调用 dll ?
    ghostheaven
        2
    ghostheaven  
       May 20, 2020 via Android
    应该是谁申请谁释放
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1025 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:48 · PVG 06:48 · LAX 15:48 · JFK 18:48
    ♥ Do have faith in what you're doing.