Author Topic: C::B reports wxRecursionGuards error when loading a cbp project  (Read 18592 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2913
Re: C::B reports wxRecursionGuards error when loading a cbp project
« Reply #15 on: Yesterday at 09:27:45 pm »
@ ollydbg

Thank you for that traceback. It spots the errror.
I can be so dumb sometimes. I remember that I copied that code from the original testing "prob of LSP" and told my self I'd need to revisit later. Then I forgot.


I'll fix it to use cross thread communication.

Online ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6165
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
I lot of tools help me to find the crash/assert.

1, gd_on's unified code::blocks cbp/workspace files(gerard-durand/codeblocks_gd_cbps: Workspace and projets files to build Code::Blocks for Windows as a wxWidgets version independant), I can simply change the option so it links to the debug version of the wx 3.3.1, just change a global compiler variable wxWidgets.WX_SUFFIX from "u" to "ud". Without this unifiled cbp, I think I need a lot of changes.

2, gdb(I'm currently using ssbssa/gdb: Unofficial Windows build of gdb with added features., I think other gdbs are all good)can catch such crash call stack.

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.