External functions - DLL file

I have 2 external functions A and B. Function A is defined in the DLL A.DLL and the function B is defined in the DLL file B.DLL
Issue:
If I call A first function, it is possible to run fine. Subsequent evaluation I call according to B, the call is sent to A.DLL.
If I reboot whole event.exe and then I call B function, everything will be fine. If I call the function A, it is sent to B.DLL.
Expected behavior:
The call have to be sent any time in the DLL, which is set in the window configuration of the specified external function in the CNF.
Version D2000 tested:

  1. D2000@SERVER started [2019-11-08 17:33:43] ####
  2. BASIC V12.00.061 D2000@SERVER (A190412061-01) [s300] ####
  3. Copyright © 1993-2019 IPESOFT s.r.o. (Ltd) Zilina ####
  4. Release: A190412061-01 - RELEASE ####
  5. Platform: x86_64-windows ####
  6. Command Line: D:\D2000\D2000_V12.0.61_server\D2000_EXE\bin64\kernel.exe /CTesting /X1 /Epostgresql-x64-11 ####
  7. Computer name: AKMETIK-DESKTOP ####
  8. Module name: D:\D2000\D2000_V12.0.61_server\D2000_EXE\bin64\kernel.exe ####
  9. Module date: 2019-04-12 ####
  10. Module time: 11:33:08 ####
  11. Module size: 31234579 ####
    ########################################################################################################################
    Thanks.

According to the log, everything is fine on the part of the D2000. The error may be on the side of your DLL. They may not be relocatable and both are loaded at the same fixed address, which would explain that the function of one is called into the DLL of the other.