FreeMM vs ShareMem

送分小仙女□ 提交于 2019-12-06 04:45:38

问题


We have a lot of dll-libraries written in both delphi and c++ builder, and use sharemem and borlndmm.dll.

An aligment-issue in a 3thparty library forces us over to the new memorymanager in delphi 2007.

Can someone please explain 'shared memory manager' for me?
Is SimpleShareMem a dropin replacement for ShareMem ?
Can we then stop deploying borlndmm.dll?
Do we have to do something with the c++-libraries as well?
Can some libraries use ShareMem and some SimpleShareMem?

Thanks, -Vegar


回答1:


I think I found the answer to most of my questions in this thread: borland.public.delphi.language.basm:

Either use
(a) SimpleShareMem.pas/FastMM4.pas, or use
(b) ShareMem.pas (i.e. borlndmm.dll)
You cannot mix the two different sharing methods.




回答2:


Just have a look at https://forums.codegear.com/thread.jspa?threadID=6608 for an interesting discussion about this subject.



来源:https://stackoverflow.com/questions/305107/freemm-vs-sharemem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!