We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
環境: Windows 10 Build 21390.co_release.210521-1658 Visual Studio Community 2019 version 16.9.3
將專案升級到VS2019版本,解決編譯時缺少boost lib x64版本後 遇到在Debug Build模式下所有的Server 在執行下面這段時會出現讀取存取違規 std::thread tCenterWorkThread([&] { asio::io_service::work work(*m_pCenterServerService); std::error_code ec; m_pCenterServerService->run(ec); // 這裡出錯 }); tCenterWorkThread.detach(); 已嘗試替換boost::thread,但是一樣有問題
std::thread tCenterWorkThread([&] { asio::io_service::work work(*m_pCenterServerService); std::error_code ec; m_pCenterServerService->run(ec); // 這裡出錯 }); tCenterWorkThread.detach();
The text was updated successfully, but these errors were encountered:
可能要檢查下m_pCenterServerService是不是nullptr或者指向一些異常地址?
Sorry, something went wrong.
我再看看,因為不是每次都會出現,上次是更動封包標頭時出現的,還有新增新的標頭。
剛剛確定指向到異常地址了
缺少的boost跟asio套件在Library資料夾裡面有附,可能要試試看是不是版本不同的關係? 另外也可以試試看用Release模式跑是不是正常。
No branches or pull requests
環境:
Windows 10 Build 21390.co_release.210521-1658
Visual Studio Community 2019 version 16.9.3
將專案升級到VS2019版本,解決編譯時缺少boost lib x64版本後
遇到在Debug Build模式下所有的Server
在執行下面這段時會出現讀取存取違規
std::thread tCenterWorkThread([&] { asio::io_service::work work(*m_pCenterServerService); std::error_code ec; m_pCenterServerService->run(ec); // 這裡出錯 }); tCenterWorkThread.detach();
已嘗試替換boost::thread,但是一樣有問題
The text was updated successfully, but these errors were encountered: