ShareMem / file sharing with Delphi DLL

Rather, I hope so. I am going to delve into an outdated Delphi 5 application that calls DLL calls (also written in D5), passing in a string that the DLL can change if necessary.

I have code for both the DLL and the application. The insert at the top of the DLL source is a note about using ShareMem, and it should be the first line in the uses section of the project, etc.

If I ported it all to D2007, is there a better (or more modern) way to get a Delphi application to share string data using the Delphi DLL? Does D5 ShareMem use material for Delphi 2007 applications (with FastMM, etc.)? I didn’t even have bash when recompiling it all - I just wondered if this bit would be a problem, and if there was an alternative / recommended way to do this?

FWIW, the DLL is completely the first batch (it is used only by this specific application, so recompiling under D2007 will not be a problem either).

+1
source share
3 answers

FastMM, D2007, SimpleShareMem 1- , DLL.

FastMM4 SourceForge, FastMM4Options.Inc(ShareMM, ShareMMIfLibrary, AttemptToUseSharedMM) FastMM4 1- , DLL.

+7

FastMM4. FastMM4 - ShareMem! FastMM4 D5 up!

+3

, sharemem, , dll. : -

If you can limit your lines to shortstring , you can opt out of sharemem. I wrote dozens of dlls, mostly hardware drivers, and I didn't have to use sharemem once.

0
source

Source: https://habr.com/ru/post/1726130/


All Articles