raygenyang
V2EX  ›  Node.js

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

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