-
I get this exception whenever I startup the program in debug mode, even if its just the default code. But every other mode works without any errors, my question here: I it still safe to use? or did I miss something? PS: I did not make an issue, because I am not sure if it is one. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Seems like some shared object *.dll not included. If you compiled manually drogon project to create lib/ctl might not work when build type is not same, unless you use vcpkg or somethin that include release & debug version. 1You may check your DCMAKE_BUILD_TYPE arg first, is it on Debug or Release, 2If you're using vcpkg, you can add those path or manually on your system environment be sure some dependencies are installed, example to install it or just do double check if those path are included and some debug directories when you need it. 3there's also a way to just used custom path system variable, and let cmake configure that, later on on your project, add these to your CMakeLists.txt ...
include(CheckIncludeFileCXX)
include("$ENV{VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake")
...
add_executable(${PROJECT_NAME} main.cc)
...
target_include_directories(${PROJECT_NAME}
PRIVATE
# vcpkg
"$ENV{VCPKG_INCLUDE}"
"$ENV{VCPKG_LIB}"
"$ENV{VCPKG_SHARE}"
)
... 4If you still encountered error, access violation or etc that came from C:\Windows\System32 or C:\Windows\SysWow64 run repair from your visual studio installer, restart your system. Try to delete your build/out directory, configure your cmake then build it again and test to debug/run it notebe sure your cmake generator is not default visual studio, 5Still had exception? Don't have any idea again, I haven't face more than that. |
Beta Was this translation helpful? Give feedback.
-
I had the same exception on Debug with this code:
I'm using Visual Studio 2022. If I understand correctly, drogon.dll from x64-windows\bin\ uses different ABI for std:string and that cause the exception. |
Beta Was this translation helpful? Give feedback.
I had the same exception on Debug with this code:
I'm using Visual Studio 2022.
Installed drogon via vcpkg.
Exception dissapeared after loading correct dlls.
At first I've used dlls from d:\Dev\vcpkg\installed\x64-windows\bin\ and had std::bad_alloc.
Then I've used dlls from d:\Dev\vcpkg\installed\x64-windows\debug\bin\ and exception disappeared.
If I understand correctly, dr…