-
-
Notifications
You must be signed in to change notification settings - Fork 140
Description
Hi, thanks for your kindly effort first.
I want to attach a C# DLL to the native C++ software (not definitely sure) Meta Trader 4, it will be normal when it calls any other native C++ DLL, but oftenly got FROZEN when I assigned my C# DLL with this [DLLExport] package.
I had tried everything I can do, but issue is still there.
It won't happen every time but almost 5 / 10 when the phase of just loading DLL, not even calling any functions. But if lucky sometimes it works, nothing strange will happen.
I googled some articles, they said some situation named "DLL Loader Lock", if calling .NET functions before the native C++ software had really launched whole DLL, there will be big probability DEADLOCK happen.
But I am not sure if it is the issue of DLL Loader Lock? I have modified my C# code do not call any .NET functions before the MT4 call my DLL to Initialize DLL after the DLL had loaded, even not have any static object initialization before the first call. But not have any luck.
Please help, thanks very much.