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
Invalid page index used in wxAuiNotebook #24027
Comments
This is definitely a bug but it's going to be difficult to do anything about it without being able to reproduce it -- where is the source code of this demo that you used? Also, please try running the program under debugger and choosing "Stop" when the assert happens and then copying the stack trace to this issue to help us understand what's going on. TIA! |
The trouble is that you're reproducing it in the code which I don't have, so it's hard for me to follow. Could you please check if you can reproduce the problem in the AUI sample included in wxWidgets itself ( |
Thanks for the instructions! I can indeed reproduce this, will debug. |
Sorry, I was a little busy yesterday. However, I found another small bug that does not cause the program to crash. |
Fix using outdated click position in wxAuiTabCtrl mouse handlers, which resulted in an invalid wxEVT_AUINOTEBOOK_DRAG_MOTION event being generated and a crash while handling it. Ensure that we reset m_clickPt when resetting m_isDragging too so that we don't decide that we're dragging if the mouse enters the window with the left button already pressed after a previous drag. See #24027, #24039. (cherry picked from commit f1a3816)
When I used Code::Blocks to build a demo of wxAuiNotebook, there was an error and the program crashed. As shown below:
The text was updated successfully, but these errors were encountered: