Cannot debug from Delphi 10.1 Berlin

I’ve updated my version of Delphi to 10.1 and rebuilt my project. I’m now trying to debug my application from Delphi. However, I can’t because straight away I get this:

Debug Output:
< mda:msg xmlns:mda=“http://schemas.microsoft.com/CLR/2004/10/mda”>
<! –
Attempting managed execution inside OS Loader lock. Do not attempt to run
managed code inside a DllMain or image initialization function since doing so
can cause the application to hang.
–>
<mda:loaderLockMsg break=“true”/>
< /mda:msg>

I’ve already unchecked Manage Debugging Assistants, LoaderLock on the .NET side.

Do I need to do the same on the Delphi side? I know how to add an exception entry in Delphi, but I don’t know how to add this specific one?

Regards,

Rob H

I presume, you correctly disabled Loader Lock in .NET as shown at http://stackoverflow.com/questions/56642/loader-lock-error
can you create a simple testcase that reproduces this case, pls?