Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start the Debug #2267

Open
dunga1k58bh opened this issue Feb 21, 2025 · 1 comment
Open

Failed to start the Debug #2267

dunga1k58bh opened this issue Feb 21, 2025 · 1 comment

Comments

@dunga1k58bh
Copy link

I'm newbie, when i start the application it got error. This is my main.cc

`#include <drogon/drogon.h>

int main() {
drogon::app().setLogLevel(trantor::Logger::kTrace);

try {
    drogon::app().addListener("127.0.0.1", 2201);
    drogon::app().run();
}
catch (const std::exception& e) {
    std::cerr << "Error: " << e.what() << std::endl;
}

return 0;

}
`

The code failed on line drogon::app().addListener("127.0.0.1", 2201);
the exception throwed is 'Error: vector too long'

I'm using Visual Studio Community 2022, this is output when build the project with VsCode:

[main] Building folder: d:/Code/WebC++/DrogonWin/build [build] Starting build [proc] Executing command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE" --build d:/Code/WebC++/DrogonWin/build --config Debug --target ALL_BUILD -j 22 -- [build] MSBuild version 17.13.9+e0f243f1e for .NET Framework [build] [build] main.cc [build] DrogonWin_test.vcxproj -> D:\Code\WebC++\DrogonWin\build\test\Debug\DrogonWin_test.exe [build] DrogonWin.vcxproj -> D:\Code\WebC++\DrogonWin\build\Debug\DrogonWin.exe [driver] Build completed: 00:00:02.796 [build] Build finished with exit code 0

@dunga1k58bh
Copy link
Author

This is callstack

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant