Page 1 of 1

Memory protection and load time

Posted: Sat May 28, 2022 5:58 pm
by chmichael
Hello,
Seems support e-mail isn't working so i post here.
Just got VMProtect and use it on 1 of my apps.
When i use memory protection it take 15-20 seconds to load.
If i disable Memory Protection it loads quick!

Any ideas ? (Delphi)

Thank you

Re: Memory protection and load time

Posted: Thu Jun 02, 2022 7:33 am
by Admin
Do you use something like Detours for patching of VCL's code?

Re: Memory protection and load time

Posted: Mon Jun 06, 2022 10:53 pm
by chmichael
Hello
No, i'm using CEF (https://github.com/salvadordf/CEF4Delphi) library though that might do ?

Thank you

Re: Memory protection and load time

Posted: Tue Jun 07, 2022 8:02 am
by Admin
Do you know that your application patches own code (calls VirtualProtect + modifies memory + calls VirtualProtect with old protection)? VMProtect disallows to change the protection of read only memory and your code probably throws "Access Violation" exception that takes additional time at initialization.

Re: Memory protection and load time

Posted: Thu Jun 16, 2022 2:22 am
by chmichael
Nope. unless a library does it! I take a look!

Thanks