Loading a second DLL

 

Hello,

in this article from the documentation https://www.mql5.com/en/docs/runtime/imports there is this statement:

If the DLL library uses another DLL in its work, the first one cannot be loaded in case when there is no second DLL.

What does this mean?

I have a DLL which uses another DLL (C#) and everytime when attaching the EA to a chart the application crashes.

Any ideas how to avoid this?

Thanks,

Juergen


Documentation on MQL5: MQL5 programs / Call of Imported Functions
  • www.mql5.com
MQL5 programs / Call of Imported Functions - Documentation on MQL5
 

Maybe C#   DLL  file should be placed in MT's main directory. try it ! maybe MT can not find where the dll in, MT's main directory is default dir generally.

Directory, from which the MetaTrader 5 client terminal was started; 

 
DxdCn:

I found the solution: one has to provide a "terminal.exe.config" file with the proper xml statements in there:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="mql5\libraries" />
</assemblyBinding>