Recent content by Alex Sokolek

  1. Alex Sokolek

    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.
  2. Alex Sokolek

    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...
  3. Alex Sokolek

    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...
  4. Alex Sokolek

    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...
  5. Alex Sokolek

    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...
  6. Alex Sokolek

    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...
  7. Alex Sokolek

    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.
  8. Alex Sokolek

    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.
  9. Alex Sokolek

    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...
  10. Alex Sokolek

    Multi-Threading, Visual Studio, and Breakpoints.

    Thank you. That helps.
  11. Alex Sokolek

    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...
  12. Alex Sokolek

    This is a test to see if ChatGPT is still broken

    This is a test to see if ChatGPT is still broken.
  13. Alex Sokolek

    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...
  14. Alex Sokolek

    Update of 3-26-2024

    Do you know the end date for 23H2?
  15. Alex Sokolek

    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...
Back
Top