开发者

Unable to get FastMM4 to work with Delphi 7 application protected using ASProtect

开发者 https://www.devze.com 2023-04-08 15:14 出处:网络
I\'m getting this error, \"FastMM4 cannot install since memory has already been allocated through the default memory manager\". I\'m using ASProtect and Eurekalog for my Delphi 7 application (there\'s

I'm getting this error, "FastMM4 cannot install since memory has already been allocated through the default memory manager". I'm using ASProtect and Eurekalog for my Delphi 7 application (there's no problems with Eurekalog though). I've already placed FastMM4 as the first unit as required.

Later I found out that ASProtect can execute a DLL before running the application.

*External User Code*Since this version, ASProtect imple开发者_JS百科ments an external dynamic library > usage feature. This might be very useful if you want you own code to be executed by

ASProtect befor main application starting. You should provide ASProtect with the full path to the selected DLL. This library will be added to ASProtect code at the protection > step. There is only one function which will be executed by ASprotect at the run-time before running the main application.

Function declaration:

Delphi: function RunApplication() : Boolean; export;

If function result is TRUE, ASProtect will start main application, otherwise error message occures. Warning: If you want to get access to the resources of your DLL use DialogBoxIndirect or > CreateDialogBoxInderect class APIs. All other WinAPI functions (such as FindResorceA, LoadResource, etc) might not working correctly and returns error results.

So, I created a DLL with the following but this doesn't help.

library fastmem;

uses FastMM4 in 'FastMM4.pas', SysUtils,dialogs, Classes;

{$R *.res}

begin showmessage('ok!'); end.

After that, I run my application, and it displays 'OK' messagebox before showing the "FastMM4 cannot install since memory has already been allocated through the default memory manager" error.

Any thoughts of how I can solve this problem? Can I disable Delphi's default memory manager? Thanks. :)

Note: ASProtect no longer provides forum support.

0

精彩评论

暂无评论...
验证码 换一张
取 消