Archicad C++ API
About Archicad add-on development using the C++ API.

How to keep COM dll in memory while ArchiCAD works?

Anonymous
Not applicable
My Add-On use COM dll. COM dll support authorization and also monitor some local folders for changes. And I need to keep dll in memory all time ArchiCAD works.
I load COM dll while first CommandHandler call occur. But ArchiCAD unload dll after each command execution.

Where I can place my COM dll smart point instance for keep it in memory all time? Or may be you can suggest another decision? Thanks
3 REPLIES 3
Anonymous
Not applicable
Or there can be someone will advise how to prevent an unloading of a Add-On after menu command execution?
Ralph Wessel
Mentor
equilibrium wrote:
Or there can be someone will advise how to prevent an unloading of a Add-On after menu command execution?
Take a look at ACAPI_KeepInMemory
This will prevent the add-on from unloading between commands.
Ralph Wessel BArch
Anonymous
Not applicable
Thanks, Ralph!