-
Multi-threading, Visual Studio, and Breakpoints
Hi Mike. Thank you for getting ChatGPT involved to provide more depth. I did not know you could do that after the initial response.- Alex Sokolek
- Post #5
- Forum: Windows Software
-
Multi-threading, Visual Studio, and Breakpoints
This problem is solved. While debugging, there is a thread window that shows the threads in the current app. When you hit a breakpoint, all threads stop. The thread that hit the breakpoint is highlighted in yellow. Before stepping forward, you can freeze the other threads by right clicking on...- Alex Sokolek
- Post #2
- Forum: Windows Software
-
Windows 11 PeekMessage() not returning WM_KEYDOWN message
This problem has been resolved. The solution involved replacing "PeekMessage(&msg, hWnd, WM_KEYFIRST, 0, 0, PM_REMOVE)" with "PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)". The reason I did not think it was the solution before was that I was also throwing an access exception (in a different part of...- Alex Sokolek
- Post #5
- Forum: Programming and Scripting
-
Windows 11 PeekMessage() not returning WM_KEYDOWN message
"ChatGPT" 1. I checked. VK_ESCAPE is 0x1B and WM_KEYDOWN is 0x0100. 2. I tried TranslateMessage(). It did not help. Besides, the docs say that TranslateMessage() directly sends the translated messages to the Windows Procedure. 3. I don't think GetMessage() would work. It does not return until...- Alex Sokolek
- Post #4
- Forum: Programming and Scripting
-
Windows 11 PeekMessage() not returning WM_KEYDOWN message
"ChatGPT" 1. I tried PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) and that did not help. 2. I could understand that, if the priority of WM_PAINT vs WM_KEYDOWN were reversed. If this were the issue, I would expect that WM_KEYDOWN would have priority over WM_PAINT. Besides, I have another program...- Alex Sokolek
- Post #3
- Forum: Programming and Scripting
-
Windows 11 PeekMessage() not returning WM_KEYDOWN message
Hi. I'm having trouble with PeekMessage(). I use PeekMessage() in a loop inside my WM_PAINT procedure to consume messages generated during a long computation process, and to allow the user to abort the process by pressing ESCAPE. Here is a snippet of my code... ... Create several threads to do...- Alex Sokolek
- Thread
- c++ winapi
- Replies: 4
- Forum: Programming and Scripting
-
Mouse cursor being duplicated
I disabled the mouse pointer trails. That solved my problem. That's a shame, because I used the trails to help me find the cursor. Anyway, thanks.- Alex Sokolek
- Post #3
- Forum: Windows Software
-
Sound is delayed
Hi. I'm having a problem with audio. There is a constant one second delay between the time MessageBeep() is called and the moment the sound is heard. I checked my audio drivers. They are current. I have Windows 11 23H2. Any ideas? Thank you.- Alex Sokolek
- Thread
- 23h2 audio delay drivers problem sound tech support troubleshooting windows 11
- Replies: 1
- Forum: Windows Software
-
Mouse cursor being duplicated
Hi. I have an intermittant problem with my mouse cursor. When I open and/or close a window, the cursor gets duplicated, up and to the left, about 1 centimeter away from the original cursor. I checked my video and mouse drivers. They are current. I also checked the settings of the mouse pointer...- Alex Sokolek
- Thread
- bugs cursor display issues drivers graphics intermittent mouse settings windows 11
- Replies: 2
- Forum: Windows Software
-
Multi-Threading, Visual Studio, and Breakpoints.
Thank you. That helps.- Alex Sokolek
- Post #3
- Forum: Windows Software
-
Multi-Threading, Visual Studio, and Breakpoints.
This is a repost, now that ChatGPT is working again... Hi. I need some clarification and/or help with a multi-threaded application being debugged with Visual Studio. I notice that when I hit a breakpoint in a thread, it stops, and I can examine the status and values, but when I step to the...- Alex Sokolek
- Thread
- breakpoints c++ debugging multithreading programming software development thread management version visual studio
- Replies: 2
- Forum: Windows Software
-
This is a test to see if ChatGPT is still broken
This is a test to see if ChatGPT is still broken.- Alex Sokolek
- Thread
- broken chatgpt issues still testing
- Replies: 3
- Forum: Windows Software
-
Multi-threading, Visual Studio, and Breakpoints
Hi. I need some clarification and/or help with a multi-threaded application being debugged with Visual Studio. I notice that when I hit a breakpoint in a thread, it stops, and I can examine the status and values, but when I step to the next instruction, the debugger goes back to the original...- Alex Sokolek
- Thread
- app development breakpoints c++ debugger features debugging multithreading thread management version 17.9.6 visual studio visual studio 2022
- Replies: 6
- Forum: Windows Software
-
A strange problem with modeless dialog boxes - V2
I don't think that's the answer. This is because the program works fine if I run with the debugger, F5, but it does not work fine if I run without the debugger, Ctrl-F5. I would expect the function to be the same for each case, but it's not. Besides, the dialog box procedure does not process...- Alex Sokolek
- Post #3
- Forum: Windows Software