UE 4/5 Crashes, Hello World in Third Party Library integration, EXCEPTION_ACCESS_VIOLATION

I’ve found the solution.

It’s due to a non standard stl c++ library implementation ( Why doesn’t UE utilize STL containers? - Programming & Scripting / C++ - Unreal Engine Forums).
So, I must not use std::string in my DLL interface (ExampleLibrary.h) and must replace it by:

EXAMPLELIBRARY_IMPORT char * SayHelloFromLib();