Microsoft C++ exception
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 314
- PR merge metrics
- No merged PRs in 30d
Description
File optick_server.cpp has the following code.
`bool Accept()
{
TcpSocket incomingSocket = ::accept(listenSocket, nullptr, nullptr);
if (IsValidSocket(incomingSocket))
{
std::lock_guard lock(socketLock);
acceptSocket = incomingSocket;
SetSocketBlockingMode(acceptSocket, true);
}
return IsValidSocket(acceptSocket);
}`
Calling accept cause VC debugger output the following message:
> Exception thrown at 0x00007FFE9F9056B8 in ConsoleApp.exe: Microsoft C++ exception: int at memory location 0x000000CE7EB7EC48.
Although this message does not affect the function, VC debugger output it repeatedly. It's annoying. I am using Windows 10 and Visual Studio 2017.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in optick_server.cpp at the Accept() function and reproduce the repeated Microsoft C++ exception message in Visual Studio 2017 on Windows 10. Trace the accept call and surrounding socket handling; done means the debugger no longer reports the unwanted exception while Accept() continues to handle incoming sockets correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100