I started looking for what in the "Interface" module could be the source of the error. I did all the manipulations for the dynamic library, but the code in the application itself remained unchanged. First, in this module, I commented out the lines in the initialization and finalization sections - there was an error anyway. Eventually I got to the qt56 module and in it I commented out the initPWideStrings call. As a result, the test application with LoadLibrary and FreeLibrary calls terminated without errors. Interestingly, now when linking the library statically, an error began to occur when launching the application: The Project1 project called the exception class 'External: SIGSEGV'. I'm at a loss.